Skip to content

Commit

Permalink
[CI] Run CI also on macOS
Browse files Browse the repository at this point in the history
We need to install Docker with Homebrew as Docker isn't officially supported on
macOS.
  • Loading branch information
giordano committed Apr 11, 2021
1 parent eb8ade8 commit ef592c1
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ env:

jobs:
test:
name: Julia ${{ matrix.julia-version }} - x64 - runner ${{ matrix.runner }} - SquashFS ${{ matrix.squashfs }}
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - x64 - runner ${{ matrix.runner }} - SquashFS ${{ matrix.squashfs }}
timeout-minutes: 30
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
env:
BINARYBUILDER_RUNNER: ${{ matrix.runner }}
BINARYBUILDER_USE_SQUASHFS: ${{ matrix.squashfs }}
Expand All @@ -28,23 +28,36 @@ jobs:
- runner: privileged
squashfs: true
julia-version: "1.6"
os: ubuntu-latest

# Add a job that uses the unprivileged builder with unpacked shards
- runner: unprivileged
squashfs: false
julia-version: "1.6"
os: ubuntu-latest

# Add a job that uses the docker builder with unpacked shards
- runner: docker
squashfs: false
julia-version: "1.6"
os: ubuntu-latest

- runner: docker
squashfs: false
julia-version: "1.6"
os: macos-latest

steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: x64
- name: Install Docker
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install docker-machine docker
docker-machine start
- uses: julia-actions/julia-buildpkg@latest
- name: System info
run: julia --project=. --color=yes -e "using BinaryBuilderBase; BinaryBuilderBase.versioninfo()"
Expand Down

0 comments on commit ef592c1

Please sign in to comment.