CI: fix go examples #372
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
name: "c-cpp" | |
on: | |
push: | |
branches: "main" | |
pull_request: | |
branches: "*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: install deps | |
run: | | |
sudo make install-deps | |
make /opt/wasi-sdk | |
make tinygo | |
- name: make | |
run: make -C runtime/cpp | |
- name: make build-lib | |
run: make -C runtime/cpp build-lib | |
- name: examples with cpp runtime | |
run: IMPL=cpp make -C examples | |
- name: make test | |
run: | | |
make clean | |
make -C runtime/cpp test | |
- name: Upload build result | |
uses: actions/upload-artifact@v2.3.1 | |
with: | |
path: "wasm-bpf" |