Fix path, include all toolchains in the Docker image
Some checks failed
Build binaries and publish / build-linux (aarch64-unknown-linux-gnu) (push) Failing after 14s
Build binaries and publish / build-linux (aarch64-unknown-linux-musl) (push) Failing after 8s
Build binaries and publish / build-linux (x86_64-unknown-linux-gnu) (push) Failing after 9s
Build binaries and publish / build-linux (x86_64-unknown-linux-musl) (push) Failing after 9s
Some checks failed
Build binaries and publish / build-linux (aarch64-unknown-linux-gnu) (push) Failing after 14s
Build binaries and publish / build-linux (aarch64-unknown-linux-musl) (push) Failing after 8s
Build binaries and publish / build-linux (x86_64-unknown-linux-gnu) (push) Failing after 9s
Build binaries and publish / build-linux (x86_64-unknown-linux-musl) (push) Failing after 9s
This commit is contained in:
parent
591ed70b5c
commit
42a18fd603
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -8,6 +8,7 @@ on:
|
|||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
PATH:
|
||||
|
||||
jobs:
|
||||
build-linux:
|
||||
|
@ -26,8 +27,11 @@ jobs:
|
|||
- aarch64-unknown-linux-musl
|
||||
|
||||
steps:
|
||||
- name: Set path variable
|
||||
run: echo $HOME/.cargo/bin >> $GITHUB_PATH
|
||||
|
||||
- name: Switch toolchain
|
||||
run: $HOME/.cargo/bin/rustup default stable-${{ matrix.target }}
|
||||
run: rustup default stable-${{ matrix.target }}
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
|
|
@ -6,5 +6,9 @@ RUN apt-get install -yqq wget build-essential yasm libavutil-dev libavcodec-dev
|
|||
WORKDIR /opt/rust
|
||||
RUN wget https://sh.rustup.rs -O rustup-init.sh
|
||||
RUN chmod +x rustup-init.sh
|
||||
RUN ./rustup-init.sh -y -t x86_64-unknown-linux-gnu x86_64-unknown-linux-musl aarch64-unknown-linux-gnu aarch64-unknown-linux-musl
|
||||
|
||||
RUN ./rustup-init.sh -y
|
||||
RUN $HOME/.cargo/bin/rustup install --force-non-host stable-x86_64-unknown-linux-gnu
|
||||
RUN $HOME/.cargo/bin/rustup install --force-non-host stable-x86_64-unknown-linux-musl
|
||||
RUN $HOME/.cargo/bin/rustup install --force-non-host stable-aarch64-unknown-linux-gnu
|
||||
RUN $HOME/.cargo/bin/rustup install --force-non-host stable-aarch64-unknown-linux-musl
|
||||
|
|
Loading…
Reference in New Issue
Block a user