Skip to content

Commit c57acd1

Browse files
committed
[GHA] Run CI also on macOS
We need to install Docker with Homebrew as Docker isn't officially supported on macOS.
1 parent eb8ade8 commit c57acd1

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ env:
1414

1515
jobs:
1616
test:
17-
name: Julia ${{ matrix.julia-version }} - x64 - runner ${{ matrix.runner }} - SquashFS ${{ matrix.squashfs }}
17+
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - x64 - runner ${{ matrix.runner }} - SquashFS ${{ matrix.squashfs }}
1818
timeout-minutes: 30
19-
runs-on: ubuntu-latest
19+
runs-on: ${{ matrix.os }}
2020
env:
2121
BINARYBUILDER_RUNNER: ${{ matrix.runner }}
2222
BINARYBUILDER_USE_SQUASHFS: ${{ matrix.squashfs }}
@@ -28,23 +28,35 @@ jobs:
2828
- runner: privileged
2929
squashfs: true
3030
julia-version: "1.6"
31+
os: ubuntu-latest
3132

3233
# Add a job that uses the unprivileged builder with unpacked shards
3334
- runner: unprivileged
3435
squashfs: false
3536
julia-version: "1.6"
37+
os: ubuntu-latest
3638

3739
# Add a job that uses the docker builder with unpacked shards
3840
- runner: docker
3941
squashfs: false
4042
julia-version: "1.6"
43+
os: ubuntu-latest
44+
45+
- runner: docker
46+
squashfs: false
47+
julia-version: "1.6"
48+
os: macos-latest
4149

4250
steps:
4351
- uses: actions/checkout@v2
4452
- uses: julia-actions/setup-julia@v1
4553
with:
4654
version: ${{ matrix.julia-version }}
4755
arch: x64
56+
- name: Install Docker
57+
if: ${{ matrix.os == 'macos-latest' }}
58+
run: |
59+
brew install docker-machine docker
4860
- uses: julia-actions/julia-buildpkg@latest
4961
- name: System info
5062
run: julia --project=. --color=yes -e "using BinaryBuilderBase; BinaryBuilderBase.versioninfo()"

0 commit comments

Comments
 (0)