Add Github ci #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: | |
- master | |
- dev | |
paths-ignore: | |
- "docs/**" | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- "docs/**" | |
jobs: | |
test: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- "lts" | |
- "1" | |
- "pre" | |
os: | |
- ubuntu-latest | |
arch: | |
- x64 | |
# - x86 # FIXME get ERROR: LoadError: InitError: could not load library "/usr/lib/jvm/temurin-11-jdk-amd64/lib/server/libjvm.so" | |
# /usr/lib/jvm/temurin-11-jdk-amd64/lib/server/libjvm.so: wrong ELF class: ELFCLASS64 | |
include: | |
# test macOS and Windows with latest Julia only | |
# - os: macOS-latest # FIXME ERROR: LoadError: InitError: could not load library "/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.4-7.0/arm64/Contents/Home/lib/server/libjvm.dylib" | |
# arch: x64 | |
# version: 1 | |
- os: windows-latest | |
arch: x64 | |
version: 1 | |
# - os: windows-latest # FIXME get on ci: | |
# arch: x86 # ERROR: LoadError: InitError: could not load library "C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.422-5\x64\jre\bin\server\jvm.dll" | |
# version: 1 # %1 is not a valid Win32 application. | |
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 | |
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 | |
with: | |
file: lcov.info | |
- uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: lcov.info |