Skip to content

Commit

Permalink
Install target for macOS architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
unflxw committed Nov 22, 2024
1 parent e63fd26 commit 45fa588
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/publish_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,21 @@ jobs:
run: |
cargo install cross
# Linux targets will cross compile on Docker images used by cross
# Linux targets will cross compile on Docker images used by Cross.
- name: "Login to Docker Hub"
if: matrix.runner == 'ubuntu-22.04'
uses: docker/login-action@v3
with:
username: ${{secrets.PUBLISH_DOCKERHUB_USERNAME}}
password: ${{secrets.PUBLISH_DOCKERHUB_TOKEN}}

# macOS targets do not build using a Cross image, so they may need to
# download the target for their architecture.
- name: "Install macOS architecture target"
if: matrix.runner == 'macos-14'
run: |
rustup target add "${{matrix.target}}"
- name: "Build artifact"
run: |
script/build_artifact "${{matrix.target}}"
Expand Down

0 comments on commit 45fa588

Please sign in to comment.