-
Notifications
You must be signed in to change notification settings - Fork 72
67 lines (55 loc) · 1.65 KB
/
Copy pathexamples.yaml
File metadata and controls
67 lines (55 loc) · 1.65 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
name: Examples
on:
pull_request:
paths: [examples/**, scripts/**, .github/workflows/examples.yaml]
push:
paths: [examples/**, scripts/**, .github/workflows/examples.yaml]
jobs:
examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: '1.95.0'
targets: riscv64imac-unknown-none-elf
components: rustfmt,clippy
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install LLVM and Clang
run: |
sudo apt-get update
sudo apt-get install -y clang-19 llvm-19
- uses: pnpm/action-setup@v4
with:
version: 10
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- uses: sigoden/install-binary@v1
with:
repo: nervosnetwork/ckb-standalone-debugger
name: ckb-debugger
cache: true
- name: ckb-rust-script
run: ./scripts/examples-rust-ci.sh
- name: ckb-ts-script
run: ./scripts/examples-ts-ci.sh
- name: ckb-c-script
run: ./scripts/examples-c-ci.sh
- name: dApp-examples
run: ./scripts/examples-dapp-ci.sh
- name: dApp-fullstack
run: ./scripts/examples-fullstack-ci.sh