Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
Using JuliaGtk/Gtk4.jl as a model this time
  • Loading branch information
ma-laforge authored Sep 28, 2024
1 parent ec51e5c commit 3e805e3
Showing 1 changed file with 18 additions and 31 deletions.
49 changes: 18 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,40 @@
name: CI

on:
push:
branches: [main, master]
branches: "master"
tags: ["*"]
pull_request:
release:

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.6' #Min version specified in project.toml
- '1' # automatically expands to the latest stable 1.x release of Julia
- 'pre'
julia-version:
- "1.6"
- "1"
#- "nightly"
os:
- ubuntu-latest
- windows-latest
- macos-latest
arch:
- windows-latest
julia-arch:
- x64
include:
# test macOS and Windows with latest Julia only
- os: macOS-latest
arch: aarch64
version: 1
- os: ubuntu-latest
prefix: xvfb-run
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v4
env:
cache-name: cache-artifacts
- uses: julia-actions/setup-julia@v1
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v4
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
prefix: ${{ matrix.prefix }}

0 comments on commit 3e805e3

Please sign in to comment.