-
Notifications
You must be signed in to change notification settings - Fork 1
137 lines (111 loc) · 3.75 KB
/
Copy pathstable.yml
File metadata and controls
137 lines (111 loc) · 3.75 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
name: stable
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CLICOLOR: 1
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Install Rust stable
uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stable
with:
components: clippy
- name: Using Rust cache
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
cache-all-crates: "true"
cache-on-failure: "true"
prefix-key: v0-rust-stable
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Clippy
run: make clippy
- name: Test
run: make test
codegen-rust:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Install Rust stable
uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stable
with:
components: clippy,rustfmt
- name: Using Rust cache
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
cache-all-crates: "true"
cache-on-failure: "true"
prefix-key: v0-rust-codegen
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Generate Rust snapshot tests
run: make codegen-rust
- name: Lint generated Rust
run: make lint-codegen-rust
- name: Test generated Rust
run: make test-codegen-rust
feature-flags:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Install Rust stable
uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stable
with:
components: clippy
- name: Using Rust cache
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
cache-all-crates: "true"
cache-on-failure: "true"
prefix-key: v0-rust-stable
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Compiler-only CLI
run: cargo clippy -p plotnik-cli --no-default-features -- -D warnings
- name: No-default-features lib (C-free compiler)
run: cargo clippy -p plotnik-lib --no-default-features --all-targets -- -D warnings
- name: Runtime without debug
run: |
cargo check -p plotnik-rt
cargo check -p plotnik-rt --no-default-features
- name: All-features workspace
run: cargo check --workspace --all-targets --all-features
wasm:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
LLVM_PREFIX: /usr/lib/llvm-18
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Install Rust stable
uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stable
with:
targets: wasm32-unknown-unknown
- name: Using Rust cache
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
cache-all-crates: "true"
cache-on-failure: "true"
prefix-key: v0-rust-wasm
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Check wasm
run: make check-wasm