Skip to content

Dependencies test

Dependencies test #10

Workflow file for this run

name: Dependencies test
on:
workflow_dispatch:
inputs:
dependencies_list:
description: 'Space-separated list of dependencies to update. Example: "era-compiler-common era-compiler-llvm-context"'
required: true
default: ''
type: string
dependencies_branch:
description: 'Branch of testing dependencies'
required: true
default: ''
type: string
jobs:
dependencies-check:
runs-on: matterlabs-ci-runner
container:
image: ghcr.io/matter-labs/zksync-llvm-runner:latest
steps:
# Ref to checkout will be defined automatically from the event that triggered the workflow
- name: Checkout source
uses: actions/checkout@v4
- name: Patch dependencies
shell: bash -ex ${0}
env:
CARGO_TOML: Cargo.toml
GH_ML_URL: https://github.com/matter-labs
# `www.github.com` is a workaround for Cargo issue with `patch` section from `git` source
# https://github.com/rust-lang/cargo/issues/5478
GH_ML_PATCHED_URL: https://www.github.com/matter-labs
run: |
for DEP in ${{ inputs.dependencies_list }}; do
echo "[patch.\"${GH_ML_URL}/${DEP}\"]" >> "${CARGO_TOML}"
echo "${DEP} = { git = '${GH_ML_PATCHED_URL}/${DEP}', branch = '${{ inputs.dependencies_branch }}' }" >> "${CARGO_TOML}"
done
cat "${CARGO_TOML}"
- name: Build LLVM
uses: matter-labs/era-compiler-ci/.github/actions/build-llvm@v1
with:
enable-assertions: false
- name: Run tests
uses: ./.github/actions/unit-tests