Update thiserror requirement from 1.0.11 to 2.0.0 #301
Workflow file for this run
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: CI | |
on: [push, pull_request] | |
jobs: | |
ci: | |
name: CI (${{ matrix.rust }}) | |
needs: ci-deps | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- 1.64 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: download deps | |
uses: actions/[email protected] | |
with: | |
name: nop.exe | |
- name: set up deps | |
run: chmod +x nop.exe | |
- name: build (debug, examples) | |
run: cargo build --examples | |
- name: test (debug) | |
run: cargo test | |
- name: "build examples (release)" | |
run: cargo build --release --examples | |
- name: "integration test (syscalls)" | |
run: ./script/syscall-tracepoint-test ./target | |
- name: "integration test (hw-breakpoints)" | |
run: ./script/hw-breakpoint-test ./target ./nop.exe | |
cross: | |
name: Cross-compile (${{ matrix.rust }}-${{ matrix.target }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: | |
- aarch64-unknown-linux-gnu | |
rust: | |
- stable | |
- 1.64 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: add target ${{ matrix.rust }}-${{ matrix.target }} | |
run: rustup target add ${{ matrix.target }} | |
- name: check (debug) | |
run: cargo check --target=${{ matrix.target }} | |
ci-deps: | |
name: CI dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: build test-programs | |
run: cd test-programs && ./build-all.sh | |
- name: upload test-programs | |
uses: actions/[email protected] | |
with: | |
name: nop.exe | |
path: ./test-programs/nop/nop.exe | |
retention-days: 1 |