Skip to content

Commit

Permalink
Setup mold linker
Browse files Browse the repository at this point in the history
  • Loading branch information
akrantz01 committed May 4, 2024
1 parent ef16979 commit 94a7af0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ inputs:
components:
description: Comma-separated list of components to be additionally installed
required: false
mold-version:
description: Version of the mold linker to install
required: false
default: "2.31.0"

runs:
using: composite
Expand Down Expand Up @@ -52,3 +56,10 @@ runs:
run: |
echo "CARGO_NET_GIT_FETCH_WITH_CLI=true" >> $GITHUB_ENV
echo "CARGO_REGISTRY_GLOBAL_CREDENTIAL_PROVIDERS=cargo:token" >> $GITHUB_ENV
- name: Install mold linker
shell: bash
run: |
wget -qO /tmp/mold.tar.gz https://github.com/rui314/mold/releases/download/v${{ inputs.mold-version }}/mold-${{ inputs.mold-version }}-x86_64-linux.tar.gz; \
sudo tar -xf /tmp/mold.tar.gz -C /usr/local --strip-components 1; \
rm /tmp/mold.tar.gz

0 comments on commit 94a7af0

Please sign in to comment.