chore: update dependencies #46
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 | |
name: Build | |
jobs: | |
build: | |
name: Build | |
strategy: | |
matrix: | |
include: | |
- target: aarch64-unknown-linux-musl | |
os: ubuntu-latest | |
cross: true | |
- target: x86_64-unknown-linux-musl | |
os: ubuntu-latest | |
cross: true | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Cargo Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: build-${{ matrix.target }}-${{ github.ref }} | |
- name: Build | |
if: "! matrix.cross" | |
run: cargo build --release --workspace --target ${{ matrix.target }} | |
- name: Setup Cross Toolchain | |
if: matrix.cross | |
uses: taiki-e/install-action@cross | |
- name: Build (cross) | |
if: matrix.cross | |
run: cross build --release --workspace --target ${{ matrix.target }} |