Use common CI patterns (#9)

* .github: Use cross-install action

* .github: Use set-msrv workflow
This commit is contained in:
Alexander Wagner 2022-02-15 15:04:05 +01:00 committed by GitHub
parent 71c7948b23
commit b7031fba6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 16 deletions

View File

@ -20,14 +20,7 @@ runs:
toolchain: ${{ inputs.rust }}
target: ${{ inputs.target }}
override: true
- name: Install precompiled cross
run: |
export URL=$(curl -s https://api.github.com/repos/cross-rs/cross/releases/latest | \
jq -r '.assets[] | select(.name | contains("x86_64-unknown-linux-gnu.tar.gz")) | .browser_download_url')
wget -O /tmp/binaries.tar.gz $URL
tar -C /tmp -xzf /tmp/binaries.tar.gz
mv /tmp/cross ~/.cargo/bin
shell: bash
- uses: RustCrypto/actions/cross-install@master
- if: ${{ inputs.features != 'NO_FEATURE' }}
run: |
cd ${{ inputs.package }}

View File

@ -14,19 +14,14 @@ defaults:
working-directory: keccak
env:
MSRV: 1.41.0
RUSTFLAGS: "-Dwarnings"
CARGO_INCREMENTAL: 0
jobs:
set-msrv:
runs-on: ubuntu-latest
outputs:
msrv: ${{ steps.msrv.outputs.msrv }}
steps:
- uses: actions/checkout@v2
- id: msrv
run: echo "::set-output name=msrv::$(echo $MSRV)"
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.41.0
build:
needs: set-msrv