Skip to content

Commit d7aebb2

Browse files
committed
Merge branch 'release/0.0.5'
2 parents 55986a0 + a458bb1 commit d7aebb2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+11291
-504
lines changed

.github/workflows/cargo.yml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
name: cargo
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
types: [opened, synchronize]
8+
9+
env:
10+
RUST_LOG: debug
11+
RUST_BACKTRACE: "1"
12+
CARGO_TERM_COLOR: always
13+
14+
jobs:
15+
check-schemas:
16+
name: Contract - Check Schemas
17+
timeout-minutes: 15
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Check out code
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 2
25+
26+
- name: Set up Clang
27+
uses: egor-tensin/setup-clang@v1
28+
with:
29+
version: 17
30+
31+
- name: Setup up Rust
32+
run: |
33+
rustup target add riscv64imac-unknown-none-elf
34+
35+
- name: Schemas Is Up to Date
36+
run: |
37+
cargo install moleculec --locked
38+
make clean-schemas schemas
39+
git diff --exit-code .
40+
41+
linters:
42+
name: Contract - Linters
43+
timeout-minutes: 15
44+
runs-on: ubuntu-latest
45+
46+
strategy:
47+
matrix:
48+
target:
49+
- fmt
50+
- check
51+
- clippy
52+
53+
steps:
54+
- name: Check out code
55+
uses: actions/checkout@v4
56+
with:
57+
fetch-depth: 2
58+
59+
- name: Set up Clang
60+
uses: egor-tensin/setup-clang@v1
61+
with:
62+
version: 17
63+
64+
- name: Setup up Rust
65+
run: |
66+
rustup target add riscv64imac-unknown-none-elf
67+
68+
- name: Run Command
69+
run: |
70+
make -f contracts.mk ${{ matrix.target }}
71+
if [ "${{ matrix.target }}" = "fmt" ]; then
72+
git diff --exit-code .
73+
fi
74+
75+
build-and-test:
76+
name: Contract - Build and Test
77+
timeout-minutes: 15
78+
runs-on: ubuntu-latest
79+
80+
steps:
81+
- name: Check out code
82+
uses: actions/checkout@v4
83+
with:
84+
fetch-depth: 2
85+
86+
- name: Set up Clang
87+
uses: egor-tensin/setup-clang@v1
88+
with:
89+
version: 17
90+
91+
- name: Setup up Rust
92+
run: |
93+
rustup target add riscv64imac-unknown-none-elf
94+
95+
- name: Build & Test
96+
run: |
97+
touch crates/ckb-dao-cobuild-schemas/src/schemas/*
98+
make contract
99+
100+
- uses: actions/upload-artifact@v4
101+
with:
102+
name: contracts
103+
path: build/release/

.github/workflows/ci.yml renamed to .github/workflows/pnpm.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
name: CI
1+
name: pnpm
22

33
on:
44
push:
5+
branches: [main, develop]
56
pull_request:
67
types: [opened, synchronize]
78

89
jobs:
9-
build:
10-
name: Build and Test
10+
pnpm:
11+
name: pnpm
1112
timeout-minutes: 15
1213
runs-on: ubuntu-latest
1314

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
/migrations/dev
44
/migrations/joyid
55
/migrations/omnilock
6+
/migrations/dao-action-verifier
7+
/migrations/*/deployment.json
8+
9+
# Contract
10+
/target
11+
/contracts/__tests__/failed_txs
612

713
# CKB
814
/ckb-miner.toml

0 commit comments

Comments
 (0)