This repository has been archived by the owner on May 2, 2024. It is now read-only.
Switch handling of x86_64 and aarch64 targets in Rust Build workflow #103
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: Rust CI | |
on: | |
push: | |
branches: ["rewrite"] | |
pull_request: | |
branches: ["rewrite"] | |
env: | |
CARGO_TERM_COLOR: always | |
MODIO_API_KEY: ${{ secrets.MODIO_API_KEY }} | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-rust_ci-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Build | |
run: cargo build --release --verbose | |
- name: Test | |
run: cargo test --release --verbose | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-rust_ci-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Build | |
run: cargo build --release --verbose | |
- name: Test | |
run: cargo test --release --verbose | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-rust_ci-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Build | |
run: cargo build --release --verbose | |
- name: Test | |
run: cargo test --release --verbose |