-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (82 loc) · 2.51 KB
/
Copy pathci.yml
File metadata and controls
102 lines (82 loc) · 2.51 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
name: CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
RUST_TOOLCHAIN: 1.93.0
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
web-check:
name: Web Check
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Vite+
uses: voidzero-dev/setup-vp@ca1c46663915d6c1042ae23bd39ab85718bfb0fa # v1.10.0
with:
node-version: 22
cache: true
run-install: |
args: ["--frozen-lockfile"]
- name: Run web checks
run: vp run web:check
rust-check:
name: Rust Check
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Vite+
uses: voidzero-dev/setup-vp@ca1c46663915d6c1042ae23bd39ab85718bfb0fa # v1.10.0
with:
node-version: 22
cache: true
run-install: |
args: ["--frozen-lockfile"]
- name: Install Rust toolchain
run: |
rustup toolchain install "$RUST_TOOLCHAIN" --profile minimal --component clippy
rustup default "$RUST_TOOLCHAIN"
- name: Run Rust checks
run: vp run rust:check
- name: Run Rust tests
run: cargo test --workspace
build:
name: Build Packages and Apps
runs-on: ubuntu-24.04
timeout-minutes: 30
needs:
- web-check
- rust-check
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Vite+
uses: voidzero-dev/setup-vp@ca1c46663915d6c1042ae23bd39ab85718bfb0fa # v1.10.0
with:
node-version: 22
cache: true
run-install: |
args: ["--frozen-lockfile"]
- name: Install Rust toolchain
run: |
rustup toolchain install "$RUST_TOOLCHAIN" --profile minimal
rustup default "$RUST_TOOLCHAIN"
rustup target add wasm32-unknown-unknown --toolchain "$RUST_TOOLCHAIN"
- name: Install WebAssembly linker
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends --yes lld
- name: Build workspace packages and apps
run: vp run workspace:build