Skip to content

Commit

Permalink
add github actions to build with llvm toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Oct 19, 2023
1 parent 5411502 commit 9a9e4a3
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/llvm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI for LLVM

on: [push, pull_request]

jobs:
build:

environment:
LLVM_VERSION: 16

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install ckb-debugger
run: |
wget 'https://github.com/nervosnetwork/ckb-standalone-debugger/releases/download/v0.107.0/ckb-debugger-linux-x64.tar.gz'
tar zxvf ckb-debugger-linux-x64.tar.gz
chmod +x ckb-debugger
cp ckb-debugger ~/.cargo/bin
ckb-debugger --version
- name: Install LLVM
run: |
curl -sf -L https://apt.llvm.org/llvm.sh | sudo bash -s -- ${{ env.LLVM_VERSION }}
- name: Build
run: |
make -f Makefile.clang V=1 LLVM_VERSION=${{ env.LLVM_VERSION }}
- name: Run cases
run: |
cd tests/official && make ci
cd ../test_cases && make ci
cd ../ckb-c-stdlib-tests && make all-via-docker && make ci

0 comments on commit 9a9e4a3

Please sign in to comment.