ci: Convert stable job to GitHub actions workflow

This commit is contained in:
Jonas Platte 2021-04-22 14:22:06 +02:00
parent dcf5081735
commit 49bd9d037c
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
2 changed files with 25 additions and 13 deletions

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 stable --profile minimal
rustup default stable
- test: |
cd ruma
cargo run -p xtask --no-default-features ci stable

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

@ -0,0 +1,25 @@
name: Rust stable
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install stable rust 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 stable