CICD: Build: Remove conditional TOOLCHAIN logic

because we always use "stable". If we need to go back to using
matrix.job.toolchain, we should do it like in jobs.coverage, instead of
messing about with vars and outputs.
This commit is contained in:
Martin Nordholts 2021-01-06 21:51:00 +01:00 committed by David Peter
parent c67b439752
commit 63460f4bf9
1 changed files with 2 additions and 7 deletions

View File

@ -83,7 +83,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
job: job:
# { os, target, cargo-options, features, use-cross, toolchain } # { os, target, cargo-options, features, use-cross }
- { os: ubuntu-latest , target: arm-unknown-linux-gnueabihf , use-cross: use-cross } - { os: ubuntu-latest , target: arm-unknown-linux-gnueabihf , use-cross: use-cross }
- { os: ubuntu-18.04 , target: aarch64-unknown-linux-gnu , use-cross: use-cross } - { os: ubuntu-18.04 , target: aarch64-unknown-linux-gnu , use-cross: use-cross }
- { os: ubuntu-18.04 , target: i686-unknown-linux-gnu , use-cross: use-cross } - { os: ubuntu-18.04 , target: i686-unknown-linux-gnu , use-cross: use-cross }
@ -110,11 +110,6 @@ jobs:
id: vars id: vars
shell: bash shell: bash
run: | run: |
# toolchain
TOOLCHAIN="stable" ## default to "stable" toolchain
# * use requested TOOLCHAIN if specified
if [ -n "${{ matrix.job.toolchain }}" ]; then TOOLCHAIN="${{ matrix.job.toolchain }}" ; fi
echo ::set-output name=TOOLCHAIN::${TOOLCHAIN}
# staging directory # staging directory
STAGING='_staging' STAGING='_staging'
echo ::set-output name=STAGING::${STAGING} echo ::set-output name=STAGING::${STAGING}
@ -194,7 +189,7 @@ jobs:
- name: Install Rust toolchain - name: Install Rust toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: ${{ steps.vars.outputs.TOOLCHAIN }} toolchain: stable
target: ${{ matrix.job.target }} target: ${{ matrix.job.target }}
override: true override: true
profile: minimal # minimal component installation (ie, no documentation) profile: minimal # minimal component installation (ie, no documentation)