Test all supported LLVM versions at once #359
Workflow file for this run
This file contains hidden or 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: Build | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| pull_request: | |
| jobs: | |
| linux: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| target: | |
| - x86_64-unknown-linux-gnu | |
| - x86_64-unknown-linux-musl | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: "1.90" | |
| override: true | |
| components: rustfmt, llvm-tools-preview | |
| - name: build | |
| run: | | |
| cargo check --no-default-features | |
| cargo check --all-features | |
| - name: test | |
| run: | | |
| # TODO: use a published version, or at least a merged branch | |
| cargo install --git https://github.com/jyn514/cargo-binutils/ --branch metadata | |
| cargo test --all-features | |
| - name: check formatting | |
| run: cargo fmt -- --check | |
| windows: | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| target: | |
| - x86_64-pc-windows-gnu | |
| - x86_64-pc-windows-msvc | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: "1.90" | |
| override: true | |
| components: llvm-tools-preview | |
| - name: test | |
| run: | | |
| cargo install cargo-binutils@0.3.6 | |
| # NOTE: only tests default features | |
| cargo test | |
| mac: | |
| runs-on: macos-latest | |
| strategy: | |
| matrix: | |
| target: | |
| - x86_64-apple-darwin | |
| - aarch64-apple-darwin | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: "1.90" | |
| override: true | |
| components: llvm-tools-preview | |
| - name: test | |
| run: | | |
| cargo install cargo-binutils@0.3.6 | |
| # NOTE: only tests default features | |
| cargo test |