Skip to content

Commit

Permalink
Symlink arg toolchain to nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
nikarh committed Oct 14, 2023
1 parent 1d708b9 commit 367ccde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ on:
default: "nightly"

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -36,7 +36,7 @@ jobs:
tags: |
type=raw,value=latest
- name: Build and push Docker image
- name: Build and push Docker image to ghcr
uses: docker/build-push-action@v4
with:
context: .
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ ENV RUSTUP_HOME=/usr/local/rustup \
RUN apk add --no-cache rustup build-base jq perl clang llvm

ARG RUST_TOOLCHAIN=nightly
RUN rustup-init -y --default-toolchain ${RUST_TOOLCHAIN} -c rust-src
RUN rustup-init -y --default-toolchain ${RUST_TOOLCHAIN} -c rust-src && \
ln -s /usr/local/rustup/toolchains/${RUST_TOOLCHAIN}-x86_64-unknown-linux-musl /usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-musl || true

RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | ash && \
cargo binstall --no-confirm --no-symlinks cargo-make cargo-vita

0 comments on commit 367ccde

Please sign in to comment.