-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.38 KB
/
push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: "On Push – Validate Build"
on:
push:
env:
CARGO_TERM_COLOR: always
jobs:
# TODO: Exfiltrate this job into one or more action/jobs so it can be reused
# for on-pr and on-merge.
# This job installs Cargo Make and Cargo Nextest before running
# the CI workflow using Cargo Make. Most of the time, it should
# restore Cargo Make and other dependencies from cache.
build:
name: Validate Rust Build
runs-on: ubuntu-latest
steps:
- name: Checkout the Repo
uses: actions/checkout@v4
- name: "Install Rust (Nightly)"
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt,clippy
- name: "Install Rust (Stable)"
uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview,rustfmt,clippy
- name: "Restore Rust Cache"
uses: Swatinem/rust-cache@v2
- name: "Install Cargo Tools from Binaries."
uses: "taiki-e/install-action@v2"
with:
tool: "cargo-tarpaulin,cargo-make,cargo-nextest,cargo-llvm-cov"
- name: "Install Cargo Sort"
uses: taiki-e/cache-cargo-install-action@v1
with:
tool: cargo-sort
- name: "Install Taplo CLI"
uses: taiki-e/cache-cargo-install-action@v1
with:
tool: taplo-cli
- name: "Cargo Make"
run: cargo make ci-flow