From e4327bad3e8232fb3f5ddcffa9bf7d4b68d91894 Mon Sep 17 00:00:00 2001 From: Maarten Pronk Date: Sat, 26 Nov 2022 14:13:35 +0100 Subject: [PATCH 1/4] Musl build can't find gcc-musl. --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 65cb3c44..ea7391a6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,6 +47,8 @@ jobs: rustflags: steps: - uses: actions/checkout@v3 + - if: ${{ contains(matrix.target, "-musl") }} + run: apt-get install musl-tools - uses: actions-rs/toolchain@v1 with: toolchain: stable From 073b7882c199c4ad138f2ca045bec504ebb4832d Mon Sep 17 00:00:00 2001 From: Maarten Pronk Date: Sat, 26 Nov 2022 15:07:25 +0100 Subject: [PATCH 2/4] Fix quotes. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ea7391a6..d3616cf2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,7 +47,7 @@ jobs: rustflags: steps: - uses: actions/checkout@v3 - - if: ${{ contains(matrix.target, "-musl") }} + - if: ${{ contains(matrix.target, '-musl') }} run: apt-get install musl-tools - uses: actions-rs/toolchain@v1 with: From 86a874deb8620162f0f7dd26a36277b02c933fcf Mon Sep 17 00:00:00 2001 From: Maarten Pronk Date: Sat, 26 Nov 2022 15:12:24 +0100 Subject: [PATCH 3/4] Use sudo. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3616cf2..31a953ee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,7 +48,7 @@ jobs: steps: - uses: actions/checkout@v3 - if: ${{ contains(matrix.target, '-musl') }} - run: apt-get install musl-tools + run: sudo apt-get install musl-tools - uses: actions-rs/toolchain@v1 with: toolchain: stable From 0ff3c3a5441a749a7ec32f3beb885741f1d48825 Mon Sep 17 00:00:00 2001 From: Maarten Pronk Date: Sat, 26 Nov 2022 21:10:33 +0100 Subject: [PATCH 4/4] Also add musl fix for release action. --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 129776bc..d319721e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,6 +88,8 @@ jobs: rustflags: steps: - uses: actions/checkout@v3 + - if: ${{ contains(matrix.target, '-musl') }} + run: sudo apt-get install musl-tools - uses: actions-rs/toolchain@v1 with: toolchain: stable @@ -151,6 +153,8 @@ jobs: rustflags: steps: - uses: actions/checkout@v3 + - if: ${{ contains(matrix.target, '-musl') }} + run: sudo apt-get install musl-tools - uses: actions-rs/toolchain@v1 with: toolchain: stable