-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a1973e
commit 04e2c3a
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Build spore_devnet | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16.14' | ||
|
||
- name: Run prepare.sh | ||
run: sh prepare.sh | ||
|
||
- name: Install Cross in spore-contract directory | ||
run: | | ||
cd spore-contract | ||
# cargo install cross --git https://github.com/cross-rs/cross | ||
cd .. | ||
|
||
- name: Install Capsule in spore-contract directory | ||
run: | | ||
cd spore-contract | ||
# cargo install ckb-capsule --git https://github.com/nervosnetwork/capsule.git --tag v0.10.1 | ||
cd .. | ||
|
||
- name: Build contracts | ||
run: | | ||
cd spore-contract | ||
# capsule build --release | ||
cd .. | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Build Lumos | ||
run: npm run build:lumos | ||
|
||
- name: Start Test | ||
run: npm run test:start | ||
|
||
- name: Deploy Test | ||
run: npm run test:deploy | ||
|
||
- name: Clean Environment | ||
run: | | ||
rm -rf tmp | ||
rm lumos.json |