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
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
5 changed files with 57 additions and 28 deletions

View File

@ -1,14 +0,0 @@
image: archlinux
packages:
- rustup
sources:
- https://github.com/ruma/ruma
tasks:
- rustup: |
# Install stable for compiling xtask, which then uses 1.45
# We specify --profile minimal because we'd otherwise download docs
rustup toolchain install stable 1.45 --profile minimal
rustup default stable
- test: |
cd ruma
cargo run -p xtask --no-default-features ci msrv

View File

@ -1,13 +0,0 @@
image: archlinux
packages:
- rustup
sources:
- https://github.com/ruma/ruma
tasks:
- rustup: |
# We specify --profile minimal because we'd otherwise download docs
rustup toolchain install nightly --profile minimal -c rustfmt,clippy
rustup default nightly
- test: |
cd ruma
cargo run -p xtask --no-default-features ci nightly

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