-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (54 loc) · 1.24 KB
/
build.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Build SDKs
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
env:
rust_version: 1.83.0
node_version: 23
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache-dependency-path: ts/package-lock.json
node-version: ${{ env.node_version }}
cache: 'npm'
- name: Install Rust
shell: "bash"
run: rustup toolchain install ${{ env.rust_version }} --profile minimal
- name: Cache rust
uses: Swatinem/rust-cache@v2
lint:
needs: install
runs-on: ubuntu-latest
defaults:
run:
working-directory: rust/
steps:
- uses: actions/checkout@v4
- name: Run fmt
run: cargo fmt -- --check
- name: Run clippy
run: cargo clippy -- --deny=warnings
build:
needs: [install, lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: run build
working-directory: rust/
run: |
cargo build
cargo test
- name: npm run build
working-directory: ts/
run: |
npm install
npm run build