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

This commit is contained in:
Anton Liaposhchenko 2023-12-27 22:15:37 +02:00
parent 98c9a2bb27
commit 66e1a77b1e
2 changed files with 2 additions and 9 deletions

View File

@ -29,13 +29,10 @@ jobs:
- name: Set path variable
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Switch toolchain
run: rustup default stable-${{ matrix.target }}
- uses: actions/checkout@v4
- run: npm install
- run: npm run build -- --release
- run: npm run build -- --release --target ${{ matrix.target }}
- uses: actions/cache@v3
with:

View File

@ -7,8 +7,4 @@ WORKDIR /opt/rust
RUN wget https://sh.rustup.rs -O rustup-init.sh
RUN chmod +x rustup-init.sh
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
RUN ./rustup-init.sh -y -t x86_64-unknown-linux-gnu x86_64-unknown-linux-musl aarch64-unknown-linux-gnu aarch64-unknown-linux-musl