Skip to content

Commit

Permalink
Fix setup on linux arm64 (#122)
Browse files Browse the repository at this point in the history
Co-authored-by: Christophe Dervieux <[email protected]>
  • Loading branch information
gaborcsardi and cderv authored Feb 19, 2025
1 parent 6e5c735 commit 4aad30c
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: test.yaml

permissions: read-all

on:
push:
branches: [main, master]
pull_request:
workflow_dispatch:
inputs:
version:
description: |
Quarto version, may be "release", "pre-release" or a version number.
required: true
default: 'release'
type: string

jobs:
quarto-setup:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }}

strategy:
fail-fast: false
matrix:
config:
- { os: macos-latest }
- { os: macos-13 }
- { os: windows-latest }
- { os: ubuntu-latest }
- { os: ubuntu-22.04-arm }

steps:
- uses: actions/checkout@v4

- uses: ./setup
with:
version: ${{ inputs.version || 'release' }}
token: ${{ secrets.GITHUB_TOKEN }}

- run: quarto --version

- run: which quarto
if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}

- run: where.exe quarto
if: ${{ runner.os == 'Windows' }}

9 changes: 8 additions & 1 deletion setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ runs:
# Select correct bundle for OS type
case $RUNNER_OS in
"Linux")
echo "BUNDLE_EXT=linux-amd64.deb" >> $GITHUB_ENV
case $RUNNER_ARCH in
ARM64|ARM)
echo "BUNDLE_EXT=linux-arm64.deb" >> $GITHUB_ENV
;;
*)
echo "BUNDLE_EXT=linux-amd64.deb" >> $GITHUB_ENV
;;
esac
;;
"macOS")
echo "BUNDLE_EXT=macos.pkg" >> $GITHUB_ENV
Expand Down

0 comments on commit 4aad30c

Please sign in to comment.