Skip to content

workflow: use arm runners for arm64 builds #162

workflow: use arm runners for arm64 builds

workflow: use arm runners for arm64 builds #162

Workflow file for this run

on:
push:
paths-ignore:
- '.github/workflows/build_test.yaml'
- 'RELEASE.md'
pull_request:
workflow_dispatch:
schedule:
- cron: '0 15 * * 2' # Runs at 15:00 (3pm) UTC every Tuesday
jobs:
build:

Check failure on line 12 in .github/workflows/build_test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_test.yaml

Invalid workflow file

You have an error in your yaml syntax on line 12
runs-on: ${{
matrix.docker_arch == 'arm64/v8' && 'ubuntu-24.04-arm' ||
'ubuntu-24.04'
}}
strategy:
matrix:
debian_version: [bullseye, bookworm]
docker_arch: [amd64, arm/v7, arm64/v8]
build_type: [generic, raspi]
exclude:
- docker_arch: amd64
build_type: raspi
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: Set GIT_VERSION
run: echo "GIT_VERSION=$(git describe --tags)" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Build Dockerfile
run: |
docker build \
--target deb_make \
--tag deb_make \
--file .github/ci/Dockerfile \
--build-arg GIT_VERSION \
--build-arg DOCKER_ARCH \
--build-arg DEBIAN_VERSION \
--build-arg BUILD_TYPE \
.
env:
DEBIAN_VERSION: ${{ matrix.debian_version }}
DOCKER_ARCH: ${{ matrix.docker_arch }}
BUILD_TYPE: ${{ matrix.build_type }}
DOCKER_BUILDKIT: 1
- name: Create container
run: docker create --name deb_make deb_make
- name: Copy files
run: docker cp deb_make:/deb/. deb/
- name: 'Upload debian files'
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.debian_version }}-${{ matrix.docker_arch }}-${{ matrix.build_type }}.zip
path: deb/
retention-days: 14