Testing workflows #6
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
on: | |
pull_request: | |
types: [assigned, opened, synchronize, reopened] | |
paths: | |
- 'LLVM.lock' | |
- 'Cargo.toml' | |
- 'Cargo.lock' | |
- 'crates/llvm-builder/**' | |
- '.github/workflows/revive-llvm-test.yml' | |
jobs: | |
test: | |
runs-on: parity-large | |
steps: | |
- uses: actions/checkout@v4 | |
# # TODO: move this setup into a reusable docker image; | |
# - name: Install solc | |
# run: | | |
# mkdir -p solc | |
# curl -sSL --output solc/solc https://github.com/ethereum/solidity/releases/download/v0.8.28/solc-static-linux | |
# chmod +x solc/solc | |
# echo "$(pwd)/solc/" >> $GITHUB_PATH | |
# | |
# - name: Install LLVM | |
# run: | | |
# curl -sSL --output llvm.tar.xz https://github.com/paritytech/revive/releases/download/v0.1.0-dev.7/clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-24.04.tar.xz | |
# mkdir llvm18 | |
# tar Jxf llvm.tar.xz -C llvm18/ | |
# echo "LLVM_SYS_181_PREFIX=$(pwd)/llvm18" >> $GITHUB_ENV | |
# | |
- name: Install apt dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y cmake ninja-build curl git libssl-dev pkg-config clang lld musl | |
- name: Install Rust stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: rust-src | |
target: wasm32-unknown-emscripten | |
- run: | | |
rustup show | |
cargo --version | |
rustup +nightly show | |
cargo +nightly --version | |
cmake --version | |
bash --version | |
- name: Test llvm-builder | |
run: make test-llvm-builder | |
env: | |
RUST_LOG: trace |