fix: use namespaced valtypes for compat with Extism #715 #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
workflow_dispatch: | |
name: C++ CI | |
jobs: | |
cpp: | |
name: C++ | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
rust: | |
- stable | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- uses: ./.github/actions/libextism | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- run: git submodule update --init | |
- name: Install C++ SDK deps | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: | | |
brew install jsoncpp googletest cmake | |
- name: Install C++ SDK deps | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
sudo apt-get install g++ libjsoncpp-dev libgtest-dev cmake | |
- name: Run C++ tests | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
make | |
make test | |
./example ../wasm/code-functions.wasm |