diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..5d63ec7 --- /dev/null +++ b/.github/workflows/test.yaml @@ -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' }} + diff --git a/setup/action.yml b/setup/action.yml index 0ddd3f2..c50692f 100644 --- a/setup/action.yml +++ b/setup/action.yml @@ -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