Skip to content

Commit

Permalink
Install musl-tools if the target name contains "musl"
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Aug 25, 2024
1 parent 52a0827 commit ad283b2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad283b2

Please sign in to comment.