Build repo with clang #35
Workflow file for this run
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
name: tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: git submodule update --init --recursive | |
- name: Build contracts | |
run: make all-via-docker | |
- name: Run tests for secp256r1_blake160 rust | |
run: cargo test | |
working-directory: ./tests/secp256r1_blake160 | |
- name: Set up ckb-debugger | |
run: make install | |
- name: run secp256r1 bench | |
run: make run-secp256r1-bench | |
clang: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: git submodule update --init --recursive | |
- name: Install clang | |
run: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh 16 all | |
- name: Build contracts | |
run: make -f Makefile.clang all | |
- name: Run tests for secp256r1_blake160 rust | |
run: cargo test | |
working-directory: ./tests/secp256r1_blake160 | |
- name: Set up ckb-debugger | |
run: make install | |
- name: run secp256r1 bench | |
run: make run-secp256r1-bench |