From b7adc55b54ffccf95c79f5791e0587e0eb5c3e3a Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Sun, 1 Dec 2019 20:15:51 -0600 Subject: [PATCH] maint/cicd ~ add GHA:MinSRV --- .github/workflows/CICD.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 3303a17..a0344f5 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -6,6 +6,7 @@ env: PROJECT_NAME: lsd PROJECT_DESC: "An ls command with a lot of pretty colors." PROJECT_AUTH: "Peltoche " + RUST_MIN_SRV: "1.31.0" on: [push, pull_request] @@ -37,6 +38,21 @@ jobs: command: clippy args: -- -D warnings + min_version: + name: MinSRV # Minimum supported rust version + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Install `rust` toolchain (v${{ env.RUST_MIN_SRV }}) + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ env.RUST_MIN_SRV }} + profile: minimal # minimal component installation (ie, no documentation) + - name: Test + uses: actions-rs/cargo@v1 + with: + command: test + build: name: Build runs-on: ${{ matrix.os }}