ci: Convert remaining jobs to GitHub actions

This commit is contained in:
Jonas Platte
2021-04-22 14:57:10 +02:00
parent ffa801254e
commit 06623f9651
5 changed files with 57 additions and 28 deletions

31
.github/workflows/msrv.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Rust 1.45
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install rust 1.45 toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: '1.45'
# Used to compile xtask
- name: Install rust stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run checks
uses: actions-rs/cargo@v1
with:
command: run
args: -p xtask --no-default-features ci msrv

25
.github/workflows/nightly.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Rust nightly
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Run checks
uses: actions-rs/cargo@v1
with:
command: run
args: -p xtask --no-default-features ci nightly

View File

@@ -12,7 +12,7 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install stable rust toolchain
- name: Install rust stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal