Skip to content

Commit f613c4a

Browse files
authored
feat: support ARM workers (#273)
1 parent f796c8b commit f613c4a

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,3 +273,22 @@ jobs:
273273
echo "Expected exit code 1"
274274
exit 1
275275
fi
276+
lychee-action-arm:
277+
runs-on: ubuntu-24.04-arm
278+
name: Basic check for ARM-based runners
279+
steps:
280+
- name: Checkout
281+
uses: actions/checkout@v4
282+
283+
- name: test defaults
284+
uses: ./
285+
286+
- name: test explicit lychee version
287+
uses: ./
288+
with:
289+
lycheeVersion: v0.15.1
290+
291+
- name: test nightly lychee version
292+
uses: ./
293+
with:
294+
lycheeVersion: nightly

‎action.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,13 @@ runs:
6464
- name: Download and extract lychee
6565
id: lychee-setup
6666
run: |
67+
ARCH=$(uname -m)
6768
# Determine filename and download URL based on version
6869
if [[ "${LYCHEE_VERSION}" =~ ^v0\.0|^v0\.1[0-5]\. ]]; then
69-
FILENAME="lychee-${LYCHEE_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
70+
FILENAME="lychee-${LYCHEE_VERSION}-${ARCH}-unknown-linux-gnu.tar.gz"
7071
DOWNLOAD_URL="https://github.com/lycheeverse/lychee/releases/download/${LYCHEE_VERSION}/${FILENAME}"
7172
else
72-
FILENAME="lychee-x86_64-unknown-linux-gnu.tar.gz"
73+
FILENAME="lychee-${ARCH}-unknown-linux-gnu.tar.gz"
7374
if [[ "${LYCHEE_VERSION}" == 'nightly' ]]; then
7475
DOWNLOAD_URL="https://github.com/lycheeverse/lychee/releases/download/nightly/${FILENAME}"
7576
elif [[ "${LYCHEE_VERSION}" == 'latest' ]]; then

0 commit comments

Comments
 (0)