From 6e09653d3ffef5f9464bca9008974abf085d747f Mon Sep 17 00:00:00 2001 From: Daniel Karzel Date: Mon, 15 Mar 2021 13:40:03 +1100 Subject: [PATCH] Remove target section from CI matrix.include does not require the target section to be present because it specifies the specific matrix combinations to be run. --- .github/workflows/ci.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54e7071e..d99e849e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,10 +40,11 @@ jobs: build: strategy: matrix: - target: [ x86_64-unknown-linux-gnu, x86_64-apple-darwin, x86_64-pc-windows-msvc, armv7-unknown-linux-gnueabihf ] include: - target: x86_64-unknown-linux-gnu os: ubuntu-latest + - target: armv7-unknown-linux-gnueabihf + os: ubuntu-latest - target: x86_64-apple-darwin os: macos-latest - target: x86_64-pc-windows-msvc @@ -85,7 +86,6 @@ jobs: RUST_TEST_TASKS: 2 strategy: matrix: - target: [ x86_64-unknown-linux-gnu, x86_64-apple-darwin, armv7-unknown-linux-gnueabihf ] include: - target: x86_64-unknown-linux-gnu os: ubuntu-latest @@ -99,12 +99,6 @@ jobs: - uses: Swatinem/rust-cache@v1.2.0 - - name: Install compiler for armhf arch - if: matrix.target == 'armv7-unknown-linux-gnueabihf' - run: | - sudo apt-get update - sudo apt-get install gcc-arm-linux-gnueabihf - - name: Build tests env: CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER: arm-linux-gnueabihf-gcc