forked from duanyytop/ckb-cheque-script
-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (35 loc) · 1.35 KB
/
build_and_test.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
name: CI
on: [push, pull_request]
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2020-09-28
override: true
- uses: docker-practice/actions-setup-docker@master
with:
docker_channel: nightly
# this value please see https://github.com/AkihiroSuda/moby-snapshot/releases
docker_nightly_version: snapshot-20201008
- name: Init submodules
uses: srt32/[email protected]
with:
args: git submodule init && git submodule update -r --init && cd contracts/ckb-cheque-script/ckb-lib-secp256k1/ckb-production-scripts && git submodule init && git submodule update
- name: Build shared binary
run: |
cd contracts/ckb-cheque-script/ckb-lib-secp256k1
sudo chmod -R a+rw ./build
make all-via-docker
cd ../../..
- name: Install Capsule
run: |
mkdir -p ./capsule && curl -L https://github.com/nervosnetwork/capsule/releases/download/v0.4.3/capsule_v0.4.3_x86_64-linux.tar.gz | tar xvz -C ./capsule --strip-components=1
chmod +x ./capsule/capsule
- name: Build contracts
run: ./capsule/capsule build
- name: Test contracts
run: ./capsule/capsule test