Skip to content

fix ninja

fix ninja #222

Workflow file for this run

name: Build
on:
push:
workflow_dispatch:
jobs:
build-x86_64:
runs-on: ubuntu-latest
strategy:
matrix:
image:
- compcert
- heaptrack
- hylo
- iwyu
- lc3
- misc
- nasm
- pythran
- rocm
- rust-cg-gcc
- rust-linux
- vast
- mads
- bloaty
steps:
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v2
- name: Docker Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push to Docker Hub
id: hub_build
uses: docker/build-push-action@v5
with:
push: ${{ github.ref == 'refs/heads/main' && 'true' || 'false' }}
tags: compilerexplorer/${{ matrix.image }}-builder:latest
cache-from: type=registry,ref=compilerexplorer/${{ matrix.image }}-builder:latest
cache-to: type=inline,mode=max
file: Dockerfile.${{ matrix.image }}
- name: Docker Hub Image Digest
run: echo ${{ steps.hub_build.outputs.digest }}
build-arm64:
runs-on: [self-hosted, ce, linux, arm64]
strategy:
matrix:
image:
- heaptrack
steps:
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v2
- name: Docker Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push to Docker Hub
id: hub_build
uses: docker/build-push-action@v5
with:
platforms: linux/arm64
push: ${{ github.ref == 'refs/heads/main' && 'true' || 'false' }}
tags: compilerexplorer/${{ matrix.image }}-builder:latest
cache-from: type=registry,ref=compilerexplorer/${{ matrix.image }}-builder:latest
cache-to: type=inline,mode=max
file: Dockerfile.${{ matrix.image }}
- name: Docker Hub Image Digest
run: echo ${{ steps.hub_build.outputs.digest }}