Skip to content

Commit 4aad30c

Browse files
gaborcsardicderv
andauthored
Fix setup on linux arm64 (#122)
Co-authored-by: Christophe Dervieux <[email protected]>
1 parent 6e5c735 commit 4aad30c

File tree

2 files changed

+56
-1
lines changed

2 files changed

+56
-1
lines changed

.github/workflows/test.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: test.yaml
2+
3+
permissions: read-all
4+
5+
on:
6+
push:
7+
branches: [main, master]
8+
pull_request:
9+
workflow_dispatch:
10+
inputs:
11+
version:
12+
description: |
13+
Quarto version, may be "release", "pre-release" or a version number.
14+
required: true
15+
default: 'release'
16+
type: string
17+
18+
jobs:
19+
quarto-setup:
20+
runs-on: ${{ matrix.config.os }}
21+
name: ${{ matrix.config.os }}
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
config:
27+
- { os: macos-latest }
28+
- { os: macos-13 }
29+
- { os: windows-latest }
30+
- { os: ubuntu-latest }
31+
- { os: ubuntu-22.04-arm }
32+
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- uses: ./setup
37+
with:
38+
version: ${{ inputs.version || 'release' }}
39+
token: ${{ secrets.GITHUB_TOKEN }}
40+
41+
- run: quarto --version
42+
43+
- run: which quarto
44+
if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
45+
46+
- run: where.exe quarto
47+
if: ${{ runner.os == 'Windows' }}
48+

setup/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ runs:
2121
# Select correct bundle for OS type
2222
case $RUNNER_OS in
2323
"Linux")
24-
echo "BUNDLE_EXT=linux-amd64.deb" >> $GITHUB_ENV
24+
case $RUNNER_ARCH in
25+
ARM64|ARM)
26+
echo "BUNDLE_EXT=linux-arm64.deb" >> $GITHUB_ENV
27+
;;
28+
*)
29+
echo "BUNDLE_EXT=linux-amd64.deb" >> $GITHUB_ENV
30+
;;
31+
esac
2532
;;
2633
"macOS")
2734
echo "BUNDLE_EXT=macos.pkg" >> $GITHUB_ENV

0 commit comments

Comments
 (0)