Skip to content

Commit

Permalink
Merge pull request #226 from Muscraft/fix-ci
Browse files Browse the repository at this point in the history
Temporary workaround for ARM builds
  • Loading branch information
Muscraft authored Feb 18, 2025
2 parents 6efac65 + c4001ec commit 0ecebbe
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,31 +57,42 @@ jobs:
#VERSIONS
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# Temporary workaround for ARM builds
# https://github.com/docker/setup-qemu-action/issues/198
with:
image: tonistiigi/binfmt:qemu-v7.0.0-28
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: rust-lang
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/login-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
username: rustopsbot
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- id: meta
- name: Docker Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
rustlang/rust
ghcr.io/rust-lang/rust
tags: ${{ matrix.tags }}

- uses: docker/build-push-action@v5
- name: Build and push image
uses: docker/build-push-action@v5
with:
context: ${{ matrix.context }}
platforms: ${{ matrix.platforms }}
Expand Down

0 comments on commit 0ecebbe

Please sign in to comment.