Merge pull request #222 from umccr/release-plz-2024-01-02T03-16-42Z #90
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: build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
strategy: | |
matrix: | |
rust: [stable] | |
os: [ubuntu-latest] | |
steps: | |
- name: Cache | |
uses: mozilla-actions/[email protected] | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@master | |
id: toolchain | |
with: | |
toolchain: ${{ matrix.rust }} | |
- run: rustup override set ${{ steps.toolchain.outputs.name }} | |
- name: Build all features | |
uses: actions-rs/[email protected] | |
with: | |
command: build | |
args: --all-targets --all-features | |
- name: Build no default features | |
uses: actions-rs/[email protected] | |
with: | |
command: build | |
args: --all-targets --no-default-features | |
- name: Build s3-storage | |
uses: actions-rs/[email protected] | |
with: | |
command: build | |
args: --all-targets --features s3-storage | |
- name: Build url-storage | |
uses: actions-rs/[email protected] | |
with: | |
command: build | |
args: --all-targets --features url-storage |