Skip to content

Commit

Permalink
Split builds for each platform
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Feb 16, 2024
1 parent d59290c commit 6ca52dd
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ jobs:
- { os: 'focal', build_ruby: '3.0', tag: 'gcc-8', extras: 'g++-8' }
- { os: 'focal', build_ruby: '3.0', tag: 'gcc-7', extras: 'g++-7' }

# The clang-14, 13 arm64 are not available.
- { os: 'jammy', system_ruby: '3.0', tag: 'clang-18', extras: 'llvm-18', platforms: 'linux/amd64' }
- { os: 'jammy', system_ruby: '3.0', tag: 'clang-17', extras: 'llvm-17', platforms: 'linux/amd64' }
- { os: 'jammy', system_ruby: '3.0', tag: 'clang-16', extras: 'llvm-16', platforms: 'linux/amd64' }
- { os: 'focal', build_ruby: '3.0', tag: 'clang-15', extras: 'llvm-15', platforms: 'linux/amd64' }
- { os: 'focal', build_ruby: '3.0', tag: 'clang-14', extras: 'llvm-14', platforms: 'linux/amd64' }
- { os: 'focal', build_ruby: '3.0', tag: 'clang-13', extras: 'llvm-13', platforms: 'linux/amd64' }
- { os: 'jammy', system_ruby: '3.0', tag: 'clang-18', extras: 'llvm-18' }
- { os: 'jammy', system_ruby: '3.0', tag: 'clang-17', extras: 'llvm-17' }
- { os: 'jammy', system_ruby: '3.0', tag: 'clang-16', extras: 'llvm-16' }
- { os: 'focal', build_ruby: '3.0', tag: 'clang-15', extras: 'llvm-15' }
- { os: 'focal', build_ruby: '3.0', tag: 'clang-14', extras: 'llvm-14' }
- { os: 'focal', build_ruby: '3.0', tag: 'clang-13', extras: 'llvm-13' }
- { os: 'focal', build_ruby: '3.0', tag: 'clang-12', extras: 'llvm-12' }
- { os: 'focal', build_ruby: '3.0', tag: 'clang-11', extras: 'llvm-11' }
- { os: 'focal', build_ruby: '3.0', tag: 'clang-10', extras: 'llvm-10' }
Expand All @@ -48,8 +47,11 @@ jobs:
- { os: 'focal', build_ruby: '3.0', tag: 'crossbuild-essential-arm64' }
- { os: 'focal', build_ruby: '3.0', tag: 'crossbuild-essential-ppc64el' }
- { os: 'focal', build_ruby: '3.0', tag: 'crossbuild-essential-s390x' }
platforms:
- 'linux/amd64'
- 'linux/arm64'

name: Publish ${{ matrix.entry.tag }}
name: Publish ${{ matrix.entry.tag }} ${{ matrix.platforms }}
runs-on: ubuntu-latest
steps:
- uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -78,7 +80,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.platforms }}
push: ${{ github.event_name != 'pull_request' }}
tags: |
ghcr.io/${{ github.repository }}:${{ matrix.entry.tag }}
Expand Down

0 comments on commit 6ca52dd

Please sign in to comment.