Fix the toolchain / target confusion
Some checks failed
Build binaries and publish / build-linux (aarch64-unknown-linux-musl) (push) Waiting to run
Build binaries and publish / build-linux (x86_64-unknown-linux-gnu) (push) Waiting to run
Build binaries and publish / build-linux (x86_64-unknown-linux-musl) (push) Waiting to run
Build binaries and publish / build-linux (aarch64-unknown-linux-gnu) (push) Has been cancelled
Some checks failed
Build binaries and publish / build-linux (aarch64-unknown-linux-musl) (push) Waiting to run
Build binaries and publish / build-linux (x86_64-unknown-linux-gnu) (push) Waiting to run
Build binaries and publish / build-linux (x86_64-unknown-linux-musl) (push) Waiting to run
Build binaries and publish / build-linux (aarch64-unknown-linux-gnu) (push) Has been cancelled
This commit is contained in:
parent
98c9a2bb27
commit
66e1a77b1e
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -29,13 +29,10 @@ jobs:
|
||||||
- name: Set path variable
|
- name: Set path variable
|
||||||
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Switch toolchain
|
|
||||||
run: rustup default stable-${{ matrix.target }}
|
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run build -- --release
|
- run: npm run build -- --release --target ${{ matrix.target }}
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -7,8 +7,4 @@ WORKDIR /opt/rust
|
||||||
RUN wget https://sh.rustup.rs -O rustup-init.sh
|
RUN wget https://sh.rustup.rs -O rustup-init.sh
|
||||||
RUN chmod +x rustup-init.sh
|
RUN chmod +x rustup-init.sh
|
||||||
|
|
||||||
RUN ./rustup-init.sh -y
|
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 $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