mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
cleaning up tests
This commit is contained in:
parent
f8f64a7a56
commit
cf01c9e6f2
1 changed files with 8 additions and 6 deletions
14
.github/workflows/rust.yml
vendored
14
.github/workflows/rust.yml
vendored
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue