Simplify register macros #24
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: | |
push: | |
branches: [ master ] | |
pull_request: | |
merge_group: | |
name: Run tests (riscv-target-parser) | |
jobs: | |
run-tests: | |
strategy: | |
matrix: | |
os: [ macos-latest, ubuntu-latest, windows-latest ] | |
toolchain: [ stable, nightly, 1.61.0 ] | |
include: | |
# Nightly is only for reference and allowed to fail | |
- rust: nightly | |
experimental: true | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental || false }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update Rust toolchain | |
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
- name: Build | |
run: cargo build --package riscv-target-parser | |
- name: Run tests | |
run: cargo test --package riscv-target-parser | |
# Job to check that all the builds succeeded | |
tests-check: | |
needs: | |
- run-tests | |
runs-on: ubuntu-latest | |
if: always() | |
steps: | |
- run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}' |