Skip to content

Commit

Permalink
Add clang CI
Browse files Browse the repository at this point in the history
  • Loading branch information
XuJiandong committed Feb 6, 2024
1 parent 22ed692 commit 3a9b86a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/clang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Rust

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Update submodules
run: git submodule update --init
- name: Build contract
run: make -f Makefile.clang all-via-docker
- name: Run omni_lock tests
run: cd tests/omni_lock_rust && cargo test
2 changes: 1 addition & 1 deletion Makefile.clang
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ omni_lock_mol:
build/cobuild.o: c/cobuild.c c/cobuild.h
$(CC) -c $(OMNI_LOCK_CFLAGS) -o $@ $<

build/omni_lock.o: c/omni_lock.c c/omni_lock_supply.h c/omni_lock_acp.h c/secp256k1_lock.h build/secp256k1_data_info_20210801.h $(SECP256K1_SRC_20210801) c/ckb_identity.h
build/omni_lock.o: c/omni_lock.c c/omni_lock_supply.h c/omni_lock_acp.h build/secp256k1_data_info_20210801.h $(SECP256K1_SRC_20210801) c/ckb_identity.h
$(CC) -c $(OMNI_LOCK_CFLAGS) -o $@ $<

build/omni_lock: build/omni_lock.o build/cobuild.o
Expand Down

0 comments on commit 3a9b86a

Please sign in to comment.