Skip to content

Commit 3be60e7

Browse files
committed
do ci for all OS's
1 parent 0c98e0e commit 3be60e7

1 file changed

Lines changed: 29 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,21 @@ on:
77
branches: [main]
88

99
jobs:
10-
smoke-test:
11-
runs-on: ubuntu-22.04
10+
ci:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
- runner: macos-latest
16+
julia_arch: aarch64
17+
- runner: macos-13
18+
julia_arch: x86_64
19+
- runner: ubuntu-22.04
20+
julia_arch: x64
21+
- runner: windows-latest
22+
julia_arch: x64
23+
24+
runs-on: ${{ matrix.runner }}
1225
timeout-minutes: 15
1326

1427
steps:
@@ -18,20 +31,31 @@ jobs:
1831
uses: julia-actions/setup-julia@v2
1932
with:
2033
version: "1.12"
34+
arch: ${{ matrix.julia_arch }}
2135

2236
- name: Cache Julia depot
2337
uses: actions/cache@v4
2438
with:
2539
path: ~/.julia
26-
key: julia-depot-${{ runner.os }}-${{ hashFiles('backend/Project.toml', 'backend/Manifest.toml') }}
27-
restore-keys: julia-depot-${{ runner.os }}-
40+
key: julia-depot-${{ runner.os }}-${{ matrix.julia_arch }}-${{ hashFiles('backend/Project.toml', 'backend/Manifest.toml') }}
41+
restore-keys: julia-depot-${{ runner.os }}-${{ matrix.julia_arch }}-
2842

2943
- name: Instantiate Julia backend
3044
working-directory: backend
3145
run: julia --project=. -e 'using Pkg; Pkg.instantiate()'
3246

33-
- name: Install jq
47+
- name: Install jq (Linux)
48+
if: runner.os == 'Linux'
3449
run: sudo apt-get install -y jq
3550

51+
- name: Install jq (macOS)
52+
if: runner.os == 'macOS'
53+
run: brew install jq
54+
55+
- name: Install jq (Windows)
56+
if: runner.os == 'Windows'
57+
run: choco install jq -y
58+
3659
- name: Run smoke test
60+
shell: bash
3761
run: ./backend/smoke-test.sh

0 commit comments

Comments
 (0)