Skip to content

Commit

Permalink
📦 Setup contract development env
Browse files Browse the repository at this point in the history
cargo generate gh:xxuejie/ckb-script-templates workspace
  • Loading branch information
doitian committed Jan 11, 2024
1 parent a7ce37b commit 93ca012
Show file tree
Hide file tree
Showing 15 changed files with 1,819 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: cargo

on:
push:
pull_request:
types: [opened, synchronize]

env:
RUST_LOG: debug
RUST_BACKTRACE: "1"
CARGO_TERM_COLOR: always

jobs:
cargo:
name: cargo
timeout-minutes: 15
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Set up Clang
uses: egor-tensin/setup-clang@v1
with:
version: 17

- name: Setup up Rust
runs: |
rustup target add riscv64imac-unknown-none-elf
- name: Build & Test
run: make -f contracts.mk
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml → .github/workflows/pnpm.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: CI
name: pnpm

on:
push:
pull_request:
types: [opened, synchronize]

jobs:
build:
name: Build and Test
pnpm:
name: pnpm
timeout-minutes: 15
runs-on: ubuntu-latest

Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
/migrations/joyid
/migrations/omnilock

# Contract
/target
/contracts/__tests__/failed_txs

# CKB
/ckb-miner.toml
/ckb.toml
Expand Down
Loading

0 comments on commit 93ca012

Please sign in to comment.