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: | |
branches: [ "master" ] | |
# We assume the runner is on x86. | |
jobs: | |
check_stable: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sudo apt-get install -qq gcc-multilib qemu-user | |
- run: cargo install cargo-show-asm | |
- run: cargo fmt --check | |
- run: cargo fetch --quiet --locked | |
- run: cargo --quiet xtask | |
# TODO: Does it make sense to have clippy here? Or rely on xtask for that? Similar question for 1.71. Really, we only want "cargo check" that to see if it compiles. We don't care about warnings and we don't care about generated assembly. | |
# TODO: diff the assembly | |
check_msrv: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
rustup toolchain uninstall default | |
rustup --quiet toolchain install 1.71 --profile=minimal --component=clippy | |
rustup --quiet default 1.71 | |
- run: cargo fetch --quiet --locked | |
- run: cargo --quiet xtask |