Skip to content

Commit

Permalink
ci(docker): use self-hosted arm64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Dec 3, 2023
1 parent 4a118f7 commit be1f856
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
run: |
DEFAULT_PLATFORM=linux/amd64
echo "default=$DEFAULT_PLATFORM" >> $GITHUB_OUTPUT
if ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}; then
# FIXME: Always use just the default platform because QEMU is way too slow to produce images.
if false && ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}; then
platforms='["'"$DEFAULT_PLATFORM"'"]'
else
platforms='["linux/amd64","linux/arm64/v8"]'
Expand All @@ -42,7 +43,11 @@ jobs:
strategy:
matrix:
platform: ${{ fromJSON(needs.platforms.outputs.platforms) }}
runs-on: ${{ contains(matrix.platform, '/arm') && 'macos-latest-xlarge' || 'ubuntu-latest' }}
# FIXME: Can't use this because MacOS doesn't have Docker.
# runs-on: ${{ contains(matrix.platform, '/arm') && 'macos-latest-xlarge' || 'ubuntu-latest' }}
# runs-on: ${{ contains(matrix.platform, '/arm') && fromJSON('["self-hosted","Linux","ARM64"]') || 'ubuntu-latest' }}
# runs-on: ubuntu-latest
runs-on: ${{ contains(matrix.platform, '/arm') && 'self-hosted' || 'ubuntu-latest' }}
steps:
- name: free up disk space
run: |
Expand Down

0 comments on commit be1f856

Please sign in to comment.