maint/cicd ~ add GHA:MinSRV

This commit is contained in:
Roy Ivy III 2019-12-01 20:15:51 -06:00 committed by Pierre Peltier
parent 4136222576
commit b7adc55b54

View file

@ -6,6 +6,7 @@ env:
PROJECT_NAME: lsd PROJECT_NAME: lsd
PROJECT_DESC: "An ls command with a lot of pretty colors." PROJECT_DESC: "An ls command with a lot of pretty colors."
PROJECT_AUTH: "Peltoche <peltoche@halium.fr>" PROJECT_AUTH: "Peltoche <peltoche@halium.fr>"
RUST_MIN_SRV: "1.31.0"
on: [push, pull_request] on: [push, pull_request]
@ -37,6 +38,21 @@ jobs:
command: clippy command: clippy
args: -- -D warnings 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: build:
name: Build name: Build
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}