From ef592c12ba0ed10ee7a50118e02de7dfab05b7c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sun, 11 Apr 2021 15:56:34 +0100 Subject: [PATCH] [CI] Run CI also on macOS We need to install Docker with Homebrew as Docker isn't officially supported on macOS. --- .github/workflows/ci.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef03ed99..ac3b3305 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} @@ -28,16 +28,24 @@ 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 @@ -45,6 +53,11 @@ jobs: 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()"