diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5872c3a..bf86f2f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,13 +28,12 @@ jobs: - { os: 'focal', baseruby: '2.7', tag: 'gcc-8', extras: 'g++-8' } - { os: 'focal', baseruby: '2.7', tag: 'gcc-7', extras: 'g++-7' } - # The clang-14, 13 arm64 are not available. - - { os: 'jammy', baseruby: '3.0', tag: 'clang-18', extras: 'llvm-18', platforms: 'linux/amd64' } - - { os: 'jammy', baseruby: '3.0', tag: 'clang-17', extras: 'llvm-17', platforms: 'linux/amd64' } - - { os: 'jammy', baseruby: '3.0', tag: 'clang-16', extras: 'llvm-16', platforms: 'linux/amd64' } - - { os: 'focal', baseruby: '2.7', tag: 'clang-15', extras: 'llvm-15', platforms: 'linux/amd64' } - - { os: 'focal', baseruby: '2.7', tag: 'clang-14', extras: 'llvm-14', platforms: 'linux/amd64' } - - { os: 'focal', baseruby: '2.7', tag: 'clang-13', extras: 'llvm-13', platforms: 'linux/amd64' } + - { os: 'jammy', baseruby: '3.0', tag: 'clang-18', extras: 'llvm-18' } + - { os: 'jammy', baseruby: '3.0', tag: 'clang-17', extras: 'llvm-17' } + - { os: 'jammy', baseruby: '3.0', tag: 'clang-16', extras: 'llvm-16' } + - { os: 'focal', baseruby: '2.7', tag: 'clang-15', extras: 'llvm-15' } + - { os: 'focal', baseruby: '2.7', tag: 'clang-14', extras: 'llvm-14' } + - { os: 'focal', baseruby: '2.7', tag: 'clang-13', extras: 'llvm-13' } - { os: 'focal', baseruby: '2.7', tag: 'clang-12', extras: 'llvm-12' } - { os: 'focal', baseruby: '2.7', tag: 'clang-11', extras: 'llvm-11' } - { os: 'focal', baseruby: '2.7', tag: 'clang-10', extras: 'llvm-10' } @@ -47,9 +46,12 @@ jobs: - { os: 'focal', baseruby: '2.7', tag: 'crossbuild-essential-arm64' } - { os: 'focal', baseruby: '2.7', tag: 'crossbuild-essential-ppc64el' } - { os: 'focal', baseruby: '2.7', tag: 'crossbuild-essential-s390x' } + arch: + - { image: 'ubuntu-latest', platforms: 'linux/amd64' } + - { image: 'macos-arm-oss', platforms: 'linux/arm64' } - name: Publish ${{ matrix.entry.tag }} - runs-on: ubuntu-latest + name: Publish ${{ matrix.entry.tag }} ${{ matrix.arch.platforms }} + runs-on: ${{ matrix.arch.image }} steps: - uses: docker/setup-qemu-action@v2 - uses: docker/setup-buildx-action@v2 @@ -66,7 +68,7 @@ jobs: packages=${{ matrix.entry.tag }} ${{ matrix.entry.extras }} cache-from: type=gha cache-to: type=gha - platforms: ${{ matrix.entry.platforms || 'linux/amd64,linux/arm64' }} + platforms: ${{ matrix.arch.platforms }} push: ${{ github.event_name != 'pull_request' }} tags: | ghcr.io/${{ github.repository }}:${{ matrix.entry.tag }}