Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
norbusan committed Jan 20, 2024
1 parent e90470a commit 5f030d1
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,44 +38,48 @@ jobs:

strategy:
fail-fast: false
matrix:
matrix:
# we need to list the archs here, otherwise the matrix contains only
# one element release_build and that is overwritten by the include statements
tl_name: [ i386-linux, x86_64-linux, x86_64-linuxmusl, aarch64-linux, armhf-linux ]
release_build:
- ${{ startsWith(github.ref, 'refs/tags/') }}
include:
- tl_name: i386-linux
image: i386/ubuntu:xenial
qemu_arch: 386
platform: 386
ci_build: true
use_qemu: false
- tl_name: x86_64-linux
image: centos:7
qemu_arch: amd64
platform: amd64
ci_build: true
use_qemu: false
- tl_name: x86_64-linuxmusl
image: alpine:3.5
qemu_arch: amd64
platform: amd64
ci_build: true
use_qemu: false
- tl_name: aarch64-linux
image: arm64v8/debian:buster
qemu_arch: aarch64
platform: aarch64
ci_build: false
use_qemu: true
qemu_arch: aarch64
- tl_name: armhf-linux
image: arm32v7/debian:buster
qemu_arch: arm
platform: arm/v7
ci_build: false
use_qemu: true
qemu_arch: arm

steps:
- name: checkout-main
uses: actions/checkout@v4
with:
path: 'repo'
- name: Setup QEMU
if: startsWith(matrix.image, 'arm')
if: matrix.use_qemu
uses: docker/setup-qemu-action@v2
with:
platforms: ${{ matrix.qemu_arch }}
Expand Down

0 comments on commit 5f030d1

Please sign in to comment.