Skip to content

CI: fix go examples (#141) #266

CI: fix go examples (#141)

CI: fix go examples (#141) #266

Workflow file for this run

name: Test rust runtime
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
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: Cache rust
uses: Swatinem/rust-cache@v2
with:
workspaces: runtime
- name: Build
run: make build-rust
- name: test wasm-bpf-rs
run: cd runtime/wasm-bpf-rs && make test
- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v2
if: github.repository_owner == 'eunomia-bpf'
with:
sarif_file: runtime/wasm-bpf-rs/rust-clippy-results.sarif
wait-for-processing: true
- name: Code coverage using Codecov
if: github.repository_owner == 'eunomia-bpf'
run: bash <(curl -s https://codecov.io/bash)
- name: examples with rust runtime
run: IMPL=rust make -C examples
- name: Upload build result
uses: actions/upload-artifact@v2.3.1
if: github.repository_owner == 'eunomia-bpf'
with:
path: "wasm-bpf-rs"