From ad283b2fc65ad1f3a04fb8bf8b2b829aad4a9318 Mon Sep 17 00:00:00 2001 From: Dave Rolsky Date: Sun, 25 Aug 2024 10:28:52 -0500 Subject: [PATCH] Install `musl-tools` if the target name contains "musl" --- Changes.md | 6 ++++++ action.yml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/Changes.md b/Changes.md index 3f41fb3..6ee63a1 100644 --- a/Changes.md +++ b/Changes.md @@ -1,3 +1,9 @@ +## 0.0.14 - 2024-08-25 + +- When the given `target` includes the string `musl`, this action will install the `musl-tools` + package. This allows crates with C or C++ code to compile properly. Fixes #20. Reported by Matteo + Pietro Dazzi (@ilteoood). + ## 0.0.13 - 2024-05-18 - It's now possible to set `cross-version` to a git ref like a commit hash or `HEAD`. This will diff --git a/action.yml b/action.yml index c7d4718..71a5190 100644 --- a/action.yml +++ b/action.yml @@ -83,6 +83,10 @@ runs: if: ${{ steps.determine-cross-compile.outputs.needs-cross == 'true' && steps.cache-cross.outputs.cache-hit != 'true' }} env: GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }} + - name: Install musl-tools on Linux if target includes "musl" + shell: bash + run: sudo apt-get update --yes && sudo apt-get install --yes musl-tools + if: contains(inputs.target, 'musl') - name: Set build command id: set-build-command shell: bash