mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 08:17:40 +03:00
75 lines
1.8 KiB
YAML
75 lines
1.8 KiB
YAML
on: [pull_request]
|
|
|
|
name: CI
|
|
|
|
jobs:
|
|
test:
|
|
name: fmt, clippy, test, test --release
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 60
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Install CI Libraries
|
|
run: sudo ./ci/install-ci-libraries.sh 10
|
|
|
|
- name: Run Zig tests
|
|
run: pushd compiler/builtins/bitcode; ./run-tests.sh; popd;
|
|
|
|
- name: Enable LLD
|
|
run: sudo ./ci/enable-lld.sh
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
name: Install Rust Toolchain
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
|
|
- run: rustup component add rustfmt
|
|
|
|
- name: Cache cargo registry
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ~/.cargo/registry
|
|
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
- name: Cache cargo index
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ~/.cargo/git
|
|
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
- name: Cache compiled valgrind
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ~/valgrind-3.6.1/
|
|
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
name: cargo fmt --check
|
|
with:
|
|
command: fmt
|
|
args: --all -- --check
|
|
|
|
- run: rustup component add clippy
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
name: cargo clippy
|
|
with:
|
|
command: clippy
|
|
args: -- -D warnings
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
name: cargo test -- --ignored
|
|
continue-on-error: true
|
|
with:
|
|
command: test
|
|
args: -- --ignored
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
name: cargo test --release
|
|
with:
|
|
command: test
|
|
args: --release
|