From a3185c62df0e3e74a589658502f92dd96bd281bf Mon Sep 17 00:00:00 2001 From: Marek Kaluba Date: Mon, 18 Nov 2024 03:43:38 +0100 Subject: [PATCH] modernize CI workflow --- .github/workflows/CI.yml | 46 ++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a6c7071..0a19982 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -3,39 +3,39 @@ on: push: branches: - main - tags: ['*'] pull_request: - workflow_dispatch: -concurrency: - # Skip intermediate builds: always. - # Cancel intermediate builds: only if it is a pull request build. - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + +# needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + jobs: test: - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} strategy: - fail-fast: false matrix: - version: - - '1.6' - - '1' - - 'nightly' - os: - - ubuntu-latest - arch: - - x64 + julia-version: ['lts', '1', 'pre'] + julia-arch: [x64] + os: [ubuntu-latest] + exclude: + - os: macOS-latest + julia-arch: x86 + steps: - - uses: actions/checkout@v3 - - 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 + version: ${{ matrix.julia-version }} + arch: ${{ matrix.julia-arch }} + - uses: julia-actions/cache@v2 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 + # with: + # annotate: true - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: files: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false