Fix job test for x86_64-unknown-linux-musl

Install corresponding rustup target and musl-tools

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-05-31 12:58:35 +10:00
parent d1c6a07a48
commit feb03e37d2
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -154,6 +154,16 @@ jobs:
- uses: actions/checkout@v2
- uses: FranzDiebold/github-env-vars-action@v1.2.1
- name: Configure toolchain
if: ${{ matrix.target == 'x86_64-unknown-linux-musl' }}
uses: actions-rs/toolchain@v1
with:
target: ${{ matrix.target }}
- name: Install musl-tools
if: ${{ matrix.target == 'x86_64-unknown-linux-musl' }}
run: sudo apt-get install -y musl-tools
- uses: actions/download-artifact@v2
with:
name: cargo-binstall-${{ matrix.target }}.${{ matrix.archive }}