From 58ccb573f683fff24f552b68119f5c934f46872d Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Wed, 8 Jan 2025 15:30:04 +0000 Subject: [PATCH 1/5] Update CI --- .github/workflows/CI.yml | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 06ff8ad9..b88939b5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -6,6 +6,16 @@ on: - master pull_request: +# needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + +# Cancel existing tests on the same PR if a new commit is added to a pull request +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + jobs: test: runs-on: ${{ matrix.os }} @@ -13,9 +23,8 @@ jobs: strategy: matrix: version: - - '1.6' + - 'min' - '1' - - nightly os: - ubuntu-latest - macOS-latest @@ -39,25 +48,31 @@ jobs: arch: x64 num_threads: 1 coverage: true + steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v4 + + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: julia-actions/cache@v1 - with: - cache-packages: "false" # caching Conda.jl causes precompilation error + + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-runtest@latest env: JULIA_NUM_THREADS: ${{ matrix.num_threads }} + - uses: julia-actions/julia-processcoverage@v1 if: matrix.coverage + - uses: codecov/codecov-action@v1 if: matrix.coverage with: file: lcov.info + - uses: coverallsapp/github-action@master if: matrix.coverage with: From cc2c64e5a00030a9116abfcd6dcc93ebaed68a15 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Wed, 8 Jan 2025 15:50:41 +0000 Subject: [PATCH 2/5] Add JuliaPre workflow --- .github/workflows/JuliaPre.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/JuliaPre.yml diff --git a/.github/workflows/JuliaPre.yml b/.github/workflows/JuliaPre.yml new file mode 100644 index 00000000..195e6cce --- /dev/null +++ b/.github/workflows/JuliaPre.yml @@ -0,0 +1,25 @@ +name: JuliaPre + +on: + push: + branches: + - master + pull_request: + +# needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: 'pre' # pre-release + arch: x64 + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 From f3bee5b585fe62c5b8eedd2c8540c6fae743990e Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Wed, 8 Jan 2025 18:24:19 +0000 Subject: [PATCH 3/5] Specify aarch64 on macos-latest --- .github/workflows/CI.yml | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b88939b5..18283e60 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -18,36 +18,24 @@ concurrency: jobs: test: - runs-on: ${{ matrix.os }} - continue-on-error: ${{ matrix.version == 'nightly' }} + runs-on: ${{ matrix.runner.os }} strategy: matrix: version: - 'min' - '1' - os: - - ubuntu-latest - - macOS-latest - - windows-latest - arch: - - x86 - - x64 num_threads: - 1 - 2 - exclude: - - os: windows-latest - arch: x86 - - os: macOS-latest + runner: + - os: ubuntu-latest + arch: x64 + - os: ubuntu-latest arch: x86 - - version: '1.6' - num_threads: 2 - include: - - version: '1' - os: ubuntu-latest + - os: windows-latest arch: x64 - num_threads: 1 - coverage: true + - os: macos-latest + arch: aarch64 steps: - uses: actions/checkout@v4 @@ -55,7 +43,7 @@ jobs: - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} - arch: ${{ matrix.arch }} + arch: ${{ matrix.runner.arch }} - uses: julia-actions/cache@v2 From a9910d1ff9d266e522a15df7b016821a3f33450a Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Wed, 8 Jan 2025 18:24:31 +0000 Subject: [PATCH 4/5] Update coverage actions to latest --- .github/workflows/CI.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 18283e60..c816f647 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -56,12 +56,12 @@ jobs: - uses: julia-actions/julia-processcoverage@v1 if: matrix.coverage - - uses: codecov/codecov-action@v1 - if: matrix.coverage + - uses: codecov/codecov-action@v5 with: - file: lcov.info + files: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} - - uses: coverallsapp/github-action@master + - uses: coverallsapp/github-action@v2 if: matrix.coverage with: github-token: ${{ secrets.GITHUB_TOKEN }} From 1c7c09db6185b7e12da16cd2be817716b9872388 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Wed, 8 Jan 2025 18:48:21 +0000 Subject: [PATCH 5/5] Fix matrix (again) --- .github/workflows/CI.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c816f647..d3278943 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -21,28 +21,36 @@ jobs: runs-on: ${{ matrix.runner.os }} strategy: matrix: - version: - - 'min' - - '1' num_threads: - 1 - 2 runner: - os: ubuntu-latest arch: x64 + version: '1' + # x86 - os: ubuntu-latest arch: x86 + version: '1' + # Minimum supported version + - os: ubuntu-latest + arch: x64 + version: 'min' + # Windows - os: windows-latest arch: x64 + version: '1' + # macOS - os: macos-latest arch: aarch64 + version: '1' steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 with: - version: ${{ matrix.version }} + version: ${{ matrix.runner.version }} arch: ${{ matrix.runner.arch }} - uses: julia-actions/cache@v2