From 1b75a1c0d143543d779047a44c81258cfea954e0 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Polanco Date: Fri, 13 Sep 2024 16:00:49 +0200 Subject: [PATCH 1/3] CI: add tests on M1 macos --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c70b6e2b..d8d6a180b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,11 @@ jobs: os: ubuntu-24.04 experimental: true arch: x64 + # Out of curiosity: does it run on apple M1? (ARM-based) + - julia-version: 'pre' + os: macos-14 + experimental: true + steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 From 415b321922cd7dcb928e72c1f09b237787245a56 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Polanco Date: Fri, 13 Sep 2024 16:13:51 +0200 Subject: [PATCH 2/3] Try to fix CI --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8d6a180b..26c2a8299 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,7 @@ jobs: - julia-version: 'pre' os: macos-14 experimental: true + arch: aarch64 steps: - uses: actions/checkout@v4 @@ -74,6 +75,7 @@ jobs: # files: lcov.info - name: Generate coverage HTML + if: runner.os == 'Linux' run: | sudo apt-get update -qq sudo apt-get install -qq lcov # provides genhtml From 0a3bb6a162ff4e0bb763d8d03aaf6f1d79736b1d Mon Sep 17 00:00:00 2001 From: Juan Ignacio Polanco Date: Fri, 13 Sep 2024 16:26:49 +0200 Subject: [PATCH 3/3] Try to use 3 threads on macos --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26c2a8299..8aa589e01 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,13 +10,15 @@ on: - master tags: '*' +# See https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories +# for available runners jobs: test: name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.experimental }} env: - JULIA_NUM_THREADS: 4 + JULIA_NUM_THREADS: 4 # Linux runners have 4 CPUs available JULIA_DISABLE_JET_KA_TESTS: true # disable JET.jl tests involving KernelAbstractions kernels (they generally fail...) strategy: fail-fast: true @@ -34,9 +36,10 @@ jobs: os: ubuntu-24.04 experimental: true arch: x64 - # Out of curiosity: does it run on apple M1? (ARM-based) + # Does it run on apple M1? (ARM-based) - julia-version: 'pre' os: macos-14 + env: JULIA_NUM_THREADS=3 # macos-14 runners have 3 CPUs available experimental: true arch: aarch64