mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Update rust.yml
This commit is contained in:
parent
85547ac2a0
commit
fa882cc70e
1 changed files with 47 additions and 15 deletions
62
.github/workflows/rust.yml
vendored
62
.github/workflows/rust.yml
vendored
|
@ -1,20 +1,52 @@
|
||||||
name: Rust
|
on: [push, pull_request]
|
||||||
|
|
||||||
on: [push]
|
name: CI
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
|
name: Test Suite
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Cache
|
- name: Install LLVM
|
||||||
uses: actions/cache@v1.0.0
|
run: ./ci/install-llvm.sh 8
|
||||||
- name: Install LLVM
|
- uses: actions-rs/toolchain@v1
|
||||||
run: ./ci/install-llvm.sh 8
|
with:
|
||||||
shell: bash
|
profile: minimal
|
||||||
- name: Build
|
toolchain: stable
|
||||||
run: cargo build --verbose
|
override: true
|
||||||
- name: Run tests
|
- uses: actions-rs/cargo@v1
|
||||||
run: cargo test --verbose
|
with:
|
||||||
|
command: test
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
name: Rustfmt
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
- run: rustup component add rustfmt
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: fmt
|
||||||
|
args: --all -- --check
|
||||||
|
|
||||||
|
clippy:
|
||||||
|
name: Clippy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
- run: rustup component add clippy
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: clippy
|
||||||
|
args: -- -D warnings
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue