Skip to content

Commit

Permalink
feat: allow building rust-cross for other toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdward162 committed Mar 30, 2024
1 parent 93ed58d commit 7b6f081
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/rust-cross.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: ${{ env.REGISTRY_IMAGE }}:${{ github.sha }},${{ env.REGISTRY_IMAGE }}:latest,${{ env.REGISTRY_IMAGE }}:${{ inputs.version }}
push: true
build-args:
- "RUST_TOOLCHAIN=${{ inputs.version }}"
5 changes: 3 additions & 2 deletions rust-cross.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM rust:1.77-slim-bookworm
FROM rust:slim-bookworm

WORKDIR /tmp/rust-cross

# Add any needed toolchains here
ARG RUST_TOOLCHAIN=stable
RUN rustup default "$RUST_TOOLCHAIN"
RUN rustup target add \
aarch64-unknown-linux-musl aarch64-unknown-linux-gnu \
x86_64-unknown-linux-musl x86_64-unknown-linux-gnu \
Expand Down

0 comments on commit 7b6f081

Please sign in to comment.