diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f251e64..15f4b88 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,12 +4,36 @@ on: name: Tests jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + - os: ubuntu-latest + target: x86_64-unknown-linux-musl + - os: ubuntu-latest + target: aarch64-unknown-linux-musl + - os: macos-latest + target: x86_64-apple-darwin + - os: macos-latest + target: aarch64-apple-darwin + steps: + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + target: ${{ matrix.target }} + override: true + - name: Build + uses: actions-rs/cargo@v1 + with: + command: build + args: --frozen --release + tests: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Install Rust toolchain uses: actions-rs/toolchain@v1 with: @@ -21,6 +45,9 @@ jobs: - name: Install Prettier run: npm install -g prettier + - name: Checkout + uses: actions/checkout@v2 + - name: Run cargo fmt uses: actions-rs/cargo@v1 with: