Skip to content

Commit

Permalink
feat: support ARM workers (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
LesnyRumcajs authored Feb 4, 2025
1 parent f796c8b commit f613c4a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,22 @@ jobs:
echo "Expected exit code 1"
exit 1
fi
lychee-action-arm:
runs-on: ubuntu-24.04-arm
name: Basic check for ARM-based runners
steps:
- name: Checkout
uses: actions/checkout@v4

- name: test defaults
uses: ./

- name: test explicit lychee version
uses: ./
with:
lycheeVersion: v0.15.1

- name: test nightly lychee version
uses: ./
with:
lycheeVersion: nightly
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ runs:
- name: Download and extract lychee
id: lychee-setup
run: |
ARCH=$(uname -m)
# Determine filename and download URL based on version
if [[ "${LYCHEE_VERSION}" =~ ^v0\.0|^v0\.1[0-5]\. ]]; then
FILENAME="lychee-${LYCHEE_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
FILENAME="lychee-${LYCHEE_VERSION}-${ARCH}-unknown-linux-gnu.tar.gz"
DOWNLOAD_URL="https://github.com/lycheeverse/lychee/releases/download/${LYCHEE_VERSION}/${FILENAME}"
else
FILENAME="lychee-x86_64-unknown-linux-gnu.tar.gz"
FILENAME="lychee-${ARCH}-unknown-linux-gnu.tar.gz"
if [[ "${LYCHEE_VERSION}" == 'nightly' ]]; then
DOWNLOAD_URL="https://github.com/lycheeverse/lychee/releases/download/nightly/${FILENAME}"
elif [[ "${LYCHEE_VERSION}" == 'latest' ]]; then
Expand Down

0 comments on commit f613c4a

Please sign in to comment.