From cf01c9e6f21bfc8324a51609a2fef8592db9c522 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 31 Dec 2020 20:46:59 +1300 Subject: [PATCH] cleaning up tests --- .github/workflows/rust.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2e383256..8cbee35f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -12,6 +12,7 @@ env: jobs: build: + name: Build runs-on: ${{ matrix.os }} strategy: @@ -63,7 +64,7 @@ jobs: if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }} run: sudo apt install gcc-arm-linux-gnueabihf - - name: Enable cross compilation + - name: Enable cross compilation (armv7) if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }} run: | echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV @@ -83,7 +84,7 @@ jobs: uses: actions/cache@v2 with: key: ${{ matrix.os }}-${{ matrix.target }} - path: C:/vcpkg/installed + path: C:/vcpkg - name: Build release uses: actions-rs/cargo@v1 @@ -112,8 +113,9 @@ jobs: tag: ${{ github.ref }} overwrite: true - test: + test: + name: Test runs-on: ${{ matrix.os }} needs: build strategy: @@ -130,7 +132,6 @@ jobs: os: windows-latest output: cargo-binstall.exe - steps: - uses: actions/checkout@v2 - uses: FranzDiebold/github-env-vars-action@v1.2.1 @@ -143,12 +144,13 @@ jobs: run: tar -xvf cargo-binstall-${{ matrix.target }}.tgz - name: "Run binstall" - run: ${{ matrix.output }} cargo-binstall --manifest-path . + run: ./${{ matrix.output }} cargo-binstall --manifest-path . --no-confirm + release: name: Upload firmware artifacts to release runs-on: ubuntu-latest - needs: build + needs: test if: ${{ startsWith(github.ref, 'refs/tags/v') }} steps: