ci: Convert remaining jobs to GitHub actions
This commit is contained in:
parent
ffa801254e
commit
06623f9651
@ -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
|
@ -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
31
.github/workflows/msrv.yml
vendored
Normal 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
25
.github/workflows/nightly.yml
vendored
Normal 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
|
2
.github/workflows/stable.yml
vendored
2
.github/workflows/stable.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user