Skip to content

ci: add cross dependency testing workflow #7

ci: add cross dependency testing workflow

ci: add cross dependency testing workflow #7

name: Dependency check
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check-zksolc:
runs-on: matterlabs-ci-runner
container:
image: ghcr.io/matter-labs/zksync-llvm-runner:latest
steps:
- name: Checkout solidity compiler
uses: actions/checkout@v4
with:
repository: 'matter-labs/era-compiler-solidity'
ref: 'main'
- name: Patch zksolc
run: |
echo "[patch.\"https://github.com/${{ github.repository }}\"]" >> "Cargo.toml"
echo "era-compiler-common = { git = 'https://www.github.com/${{ github.repository }}', rev = '${{ github.event.pull_request.head.sha }}' }" >> "Cargo.toml"
cat Cargo.toml
- name: Build LLVM
uses: matter-labs/era-compiler-ci/.github/actions/build-llvm@v1
with:
save-ccache: true # TODO: remove later after testing
- name: Run tests
uses: matter-labs/era-compiler-solidity/.github/actions/unit-tests@main