-
Notifications
You must be signed in to change notification settings - Fork 6
87 lines (67 loc) · 1.92 KB
/
Copy pathci.yml
File metadata and controls
87 lines (67 loc) · 1.92 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
name: CI
on:
pull_request:
branches: [develop, main]
issue_comment:
types: [created, edited]
push:
branches: [develop, main]
jobs:
typecheck:
name: TypeScript Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Get Yarn cache directory
id: yarn-cache
run: echo "dir=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
- name: Cache Yarn
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
yarn-${{ runner.os }}-
- name: Setup Rust
uses: dtolnay/rust-toolchain@nightly
with:
targets: wasm32-unknown-unknown
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
shared-key: wasm-build
- name: Install dependencies
run: yarn install --immutable --no-check-resolutions
- name: Build CS packages
run: yarn ci build_cs
- name: Build Frost packages
run: yarn ci build_frost
- name: Build internal packages
run: yarn ci build_pkgs
- name: Build SDK packages
run: yarn ci build_sdk
- name: Run typecheck
run: yarn ci typecheck
- name: Run language check (lint)
run: yarn ci lang_check
rust-check:
name: Rust Check
runs-on: ubuntu-latest
if: ${{ always() }}
needs: [typecheck]
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@nightly
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
shared-key: cargo-check
- name: Run cargo check
run: cargo check --workspace