diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 033b4e9c..e00b5366 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -10,6 +10,15 @@ on: - release-* jobs: + # Make sure to cancel previous runs on a push + cancel_previous_runs: + runs-on: ubuntu-latest + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.12.0 + with: + access_token: ${{ github.token }} + tests: name: Tests runs-on: ${{ matrix.os }} @@ -19,18 +28,23 @@ jobs: include: - os: windows-latest target: x86_64-pc-windows-msvc + run_cli: "yes" - os: windows-latest target: aarch64-pc-windows-msvc + run_cli: "no" - os: ubuntu-latest target: x86_64-unknown-linux-musl + run_cli: "yes" # - os: ubuntu-latest # target: aarch64-unknown-linux-gnu # - os: ubuntu-latest # target: arm-unknown-linux-gnueabihf - os: macos-latest target: x86_64-apple-darwin + run_cli: "yes" - os: macos-14 target: aarch64-apple-darwin + run_cli: "yes" # - os: ubuntu-latest # target: x86_64-unknown-linux-gnu # - os: ubuntu-latest @@ -131,6 +145,7 @@ jobs: shell: bash - name: Find Environments + if: matrix.run_cli == 'yes' run: cargo run --release --target ${{ matrix.target }} shell: bash