cleaning up tests

This commit is contained in:
ryan 2020-12-31 20:46:59 +13:00
parent f8f64a7a56
commit cf01c9e6f2

View file

@ -12,6 +12,7 @@ env:
jobs: jobs:
build: build:
name: Build
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
@ -63,7 +64,7 @@ jobs:
if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }} if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}
run: sudo apt install gcc-arm-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' }} if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}
run: | run: |
echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV
@ -83,7 +84,7 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
key: ${{ matrix.os }}-${{ matrix.target }} key: ${{ matrix.os }}-${{ matrix.target }}
path: C:/vcpkg/installed path: C:/vcpkg
- name: Build release - name: Build release
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
@ -112,8 +113,9 @@ jobs:
tag: ${{ github.ref }} tag: ${{ github.ref }}
overwrite: true overwrite: true
test:
test:
name: Test
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
needs: build needs: build
strategy: strategy:
@ -130,7 +132,6 @@ jobs:
os: windows-latest os: windows-latest
output: cargo-binstall.exe output: cargo-binstall.exe
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: FranzDiebold/github-env-vars-action@v1.2.1 - uses: FranzDiebold/github-env-vars-action@v1.2.1
@ -143,12 +144,13 @@ jobs:
run: tar -xvf cargo-binstall-${{ matrix.target }}.tgz run: tar -xvf cargo-binstall-${{ matrix.target }}.tgz
- name: "Run binstall" - name: "Run binstall"
run: ${{ matrix.output }} cargo-binstall --manifest-path . run: ./${{ matrix.output }} cargo-binstall --manifest-path . --no-confirm
release: release:
name: Upload firmware artifacts to release name: Upload firmware artifacts to release
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: test
if: ${{ startsWith(github.ref, 'refs/tags/v') }} if: ${{ startsWith(github.ref, 'refs/tags/v') }}
steps: steps: