File tree Expand file tree Collapse file tree 2 files changed +56
-1
lines changed Expand file tree Collapse file tree 2 files changed +56
-1
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change 21
21
# Select correct bundle for OS type
22
22
case $RUNNER_OS in
23
23
"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
25
32
;;
26
33
"macOS")
27
34
echo "BUNDLE_EXT=macos.pkg" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments