Skip to content

feat: add new zksync-llvm-runner with llvm18 support #2

feat: add new zksync-llvm-runner with llvm18 support

feat: add new zksync-llvm-runner with llvm18 support #2

Workflow file for this run

name: Build and release
on:
pull_request:
push:
branches:
- main
tags:
- 'v*'
env:
REGISTRY: 'ghcr.io'
WORKSPACE: 'matter-labs'
IMAGE_NAME: 'zksync-llvm-runner'
PLATFORMS: 'linux/amd64,linux/arm64'
jobs:
release:
runs-on: matterlabs-default-infra-runners
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: images/${{ env.IMAGE_NAME }}/Dockerfile
ignore: DL4006
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: ${{ env.PLATFORMS }}
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.WORKSPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
# push: ${{ github.event_name == 'push' }}
push: true
file: images/${{ env.IMAGE_NAME }}/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ env.PLATFORMS }}
- name: Generate artifact attestation
if: github.ref_type == 'tag'
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.WORKSPACE }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true