From feb03e37d2a9039e3d26bebbc1d3b2c8470274af Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Tue, 31 May 2022 12:58:35 +1000 Subject: [PATCH] Fix job `test` for `x86_64-unknown-linux-musl` Install corresponding rustup target and musl-tools Signed-off-by: Jiahao XU --- .github/workflows/rust.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d5da7aa9..79970b88 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 }}