Increase rustc toolchain version #2741
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
on: [push, pull_request] | |
name: Continuous integration | |
jobs: | |
test_linux: | |
name: Test Linux | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/[email protected] | |
- run: cargo test | |
# This also runs tests that rely on the MIME database being | |
# present. | |
- run: cargo test -- --ignored | |
test_linux_latest_stable: | |
name: Test Linux (latest stable Rust) | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo +stable test | |
test_linux_musl_build: | |
name: Test Linux (musl) | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
# https://github.com/rust-lang/rust/issues/95926 | |
- uses: dtolnay/[email protected] | |
with: | |
targets: x86_64-unknown-linux-musl | |
- run: sudo apt-get install musl-tools musl-dev | |
- run: sudo ln -s /bin/g++ /bin/musl-g++ | |
- run: rustup show active-toolchain | |
- run: rustup target install --toolchain 1.62 x86_64-unknown-linux-musl | |
- run: cargo build --target=x86_64-unknown-linux-musl | |
- run: cargo run --target=x86_64-unknown-linux-musl -- --help | |
- run: cargo test --target=x86_64-unknown-linux-musl -vv -- --nocapture --test-threads 1 | |
# test_linux_arm64: | |
# name: Test Linux arm64 (build only) | |
# runs-on: ubuntu-20.04 | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: dtolnay/[email protected] | |
# - run: rustup target add aarch64-unknown-linux-gnu | |
# - run: sudo apt-get install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu | |
# - run: cargo build --target=aarch64-unknown-linux-gnu | |
# test_mac: | |
# name: Test macOS | |
# runs-on: macos-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: dtolnay/[email protected] | |
# - run: cargo test | |
# test_windows: | |
# name: Test Windows | |
# runs-on: windows-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: dtolnay/[email protected] | |
# - run: cargo test | |
# regression_test: | |
# name: Output Regression Test | |
# runs-on: ubuntu-20.04 | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: dtolnay/[email protected] | |
# - name: Generate output for all sample files | |
# run: ./sample_files/compare_all.sh | |
# - name: Verify output is unchanged | |
# run: diff -C2 sample_files/compare.result sample_files/compare.expected | |
# package: | |
# name: Check Linux Packaging | |
# runs-on: ubuntu-20.04 | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: dtolnay/[email protected] | |
# - run: cargo package --allow-dirty | |
# fmt: | |
# name: Rustfmt | |
# runs-on: ubuntu-20.04 | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: dtolnay/[email protected] | |
# - run: cargo fmt --all -- --check |