Mirror the private repo #3
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: Testing | |
on: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
testing: | |
runs-on: [self-hosted, ci-runner-compiler] | |
timeout-minutes: 720 | |
container: | |
image: matterlabs/llvm_runner:latest | |
credentials: | |
username: ${{ secrets.DOCKERHUB_USER }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
options: -m 110g | |
steps: | |
# Add safe.directory per https://github.com/actions/checkout/issues/766 | |
- name: Setting all dirs as safe safe.directory | |
run: | | |
git config --system --add safe.directory '*' | |
git config --global --add safe.directory '*' | |
- name: Preparing workspace. Checkout compiler-tester repository. | |
uses: actions/checkout@v4 | |
with: | |
path: compiler-tester | |
submodules: recursive | |
- name: Testing. Building and running compiler tester. | |
id: compiler_tester_run | |
run: | | |
cd compiler-tester | |
cargo install compiler-llvm-builder | |
/usr/local/cargo/bin/zkevm-llvm clone && /usr/local/cargo/bin/zkevm-llvm build | |
export RUST_BACKTRACE='full' | |
export LLVM_SYS_150_PREFIX="$(pwd)/target-llvm/target-final/" | |
cargo build --verbose --release --bin 'compiler-tester' | |
cargo build --verbose --release --manifest-path /usr/local/cargo/git/checkouts/era-compiler-solidity-*/*/Cargo.toml --target-dir './target-zksolc/' | |
cargo build --verbose --release --manifest-path /usr/local/cargo/git/checkouts/era-compiler-vyper-*/*/Cargo.toml --target-dir './target-zkvyper/' | |
./target/release/compiler-tester \ | |
--zksolc './target-zksolc/release/zksolc' \ | |
--zkvyper './target-zkvyper/release/zkvyper' | |
- uses: 8398a7/action-slack@v3 | |
with: | |
status: ${{ job.status }} | |
fields: repo,commit,author,action,eventName,ref,workflow,job,took,pullRequest # selectable (default: repo,message) | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.COMPILER_CI_MATTERMOST_WEBHOOK }} # required | |
if: ${{ failure() || success() }} # Skip canceled jobs |