Skip to content

Merge pull request #152 from Gnimuc/v1.91.2 #472

Merge pull request #152 from Gnimuc/v1.91.2

Merge pull request #152 from Gnimuc/v1.91.2 #472

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
tags: "*"
permissions:
actions: write
contents: read
jobs:
loading:
name: Loading only - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.9'
- '1'
- 'nightly'
os:
- macOS-latest
- windows-latest
arch:
- x64
- x86
exclude:
- os: macOS-latest
arch: x86
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
# We add ModernGL and GLFW so that the backend extensions will be loaded too
- run: |
julia --project=. -e '
using Pkg
Pkg.add(["ModernGL", "GLFW"])
import CImGui, ModernGL, GLFW
'
tests:
name: Tests - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.9'
- '1'
- 'nightly'
os:
- ubuntu-latest
arch:
- x64
# For some reason GLFW won't let us create a window on 32 bit ubuntu
# - x86
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- name: Set the number of threads for the tests
run: |
echo "JULIA_NUM_THREADS=5,5" >> "$GITHUB_ENV"
- uses: julia-actions/julia-runtest@v1
with:
prefix: xvfb-run -a -s '-screen 0 1024x768x24'
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v4
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
DISPLAY: :99