Skip to content

Commit

Permalink
Merge branch 'github-actions'
Browse files Browse the repository at this point in the history
  • Loading branch information
doitian committed Dec 21, 2023
2 parents 444854e + e4ae401 commit b909013
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/capsule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Capsule Build & Test

on:
push:
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
build_and_test:
name: Capsule Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install cross
run: cargo install cross --git https://github.com/cross-rs/cross
- name: install capsule
run: cargo install ckb-capsule

- run: capsule build
- run: capsule test

build_release:
name: Capsule Build for Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install cross
run: cargo install cross --git https://github.com/cross-rs/cross
- name: install capsule
run: cargo install ckb-capsule

- run: capsule build --release
- uses: actions/upload-artifact@v4
with:
name: build-release
path: |
build/release
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[workspace]
members = ["contracts/joyid-cobuild-poc"]
exclude = ["tests"]
resolver = "2"

[profile.release]
overflow-checks = true
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.69.0
1.74.1

0 comments on commit b909013

Please sign in to comment.