From 12c57fffa7decbc34051d1f5db6ca7453df5bf1f Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Fri, 11 Dec 2020 10:05:14 +0100 Subject: [PATCH] Run test on CI only on appropriate targets --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95a2233db..71a7fade5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ name: Continuous integration env: RUSTFLAGS: '--deny warnings' - + jobs: ci-linux: runs-on: ubuntu-latest @@ -38,6 +38,11 @@ jobs: target: ${{ matrix.TARGET }} override: true - uses: actions-rs/cargo@v1 + with: + command: build + args: --target=${{ matrix.TARGET }} + - uses: actions-rs/cargo@v1 + if: ${{ contains(matrix.TARGET, 'x86_64') }} with: command: test args: --target=${{ matrix.TARGET }}