Skip to content

add github actions to build with llvm toolchain #1

add github actions to build with llvm toolchain

add github actions to build with llvm toolchain #1

Workflow file for this run

name: CI for LLVM

Check failure on line 1 in .github/workflows/llvm.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/llvm.yml

Invalid workflow file

Invalid type for `job.environment`
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