Skip to content

Commit

Permalink
Refactoring CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Apr 29, 2024
1 parent 6764555 commit 101527e
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 44 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/build-with-clang.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/develop-clang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Develop Clang

on:
pull_request:
push:

jobs:
develop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Deps
run: |
rustup target add riscv64imac-unknown-none-elf
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 16 && rm llvm.sh
- name: Test
run: |
cargo build --verbose --target=riscv64imac-unknown-none-elf --features=build-with-clang
23 changes: 23 additions & 0 deletions .github/workflows/develop-rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Develop Rust

on:
pull_request:
push:

jobs:
develop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Deps
run: |
rustup target add riscv64imac-unknown-none-elf
cargo install cross --git https://github.com/cross-rs/cross --rev=6982b6c
cargo install ckb-capsule --git https://github.com/nervosnetwork/capsule --rev 5c1b2ce
- name: Test
run: |
cargo build --target=riscv64imac-unknown-none-elf --no-default-features --features=ckb-types,allocator
cross check --examples
make test
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release

on:
release:
types: [created]

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Deps
run: |
rustup target add riscv64imac-unknown-none-elf
- name: Push
run: |
cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
cargo publish
25 changes: 0 additions & 25 deletions .github/workflows/rust.yml

This file was deleted.

0 comments on commit 101527e

Please sign in to comment.