chore: Bump MathLink from v0.5.2 to v0.6.0 #100
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
# based on | |
# - https://github.com/JuliaInterop/MathLink.jl/blame/4f6dbe568a7ac2dfda933033ea5196bef508c695/.github/workflows/CI.yml | |
# - https://github.com/WolframResearch/WL-FunctionCompile-CI-Template/blob/d130d1fef06f0597a2e81987140fd21eedb4dd3f/.github/workflows/compile-wl-functions.yml | |
name: CI | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'ci/*' | |
tags: ['*'] | |
pull_request: | |
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/') }} | |
jobs: | |
Linux: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- '1.10' | |
os: | |
- ubuntu-latest | |
arch: | |
- x64 | |
container: | |
image: wolframresearch/wolframengine:latest | |
options: --user root | |
env: | |
WOLFRAMINIT: -entitlement ${{ secrets.WOLFRAM_LICENSE_ENTITLEMENT_ID }} -pwfile !cloudlm.wolfram.com | |
# Limit runtime to preserve Wolfram Service Credits | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- name: Install git | |
run: | | |
apt-get update | |
apt-get install -y git | |
which git | |
- uses: julia-actions/[email protected] | |
- uses: julia-actions/julia-buildpkg@v1 | |
- uses: julia-actions/julia-runtest@v1 | |
- uses: julia-actions/julia-processcoverage@v1 | |
- uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
files: lcov.info | |
docs: | |
name: Documentation | |
runs-on: ubuntu-latest | |
container: | |
image: wolframresearch/wolframengine:latest | |
options: --user root | |
env: | |
WOLFRAMINIT: -entitlement ${{ secrets.WOLFRAM_LICENSE_ENTITLEMENT_ID }} -pwfile !cloudlm.wolfram.com | |
# Limit runtime to preserve Wolfram Service Credits | |
timeout-minutes: 10 | |
permissions: | |
contents: write | |
statuses: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: '1' | |
- name: Configure doc environment | |
run: | | |
julia --project=docs/ -e ' | |
using Pkg | |
Pkg.develop(PackageSpec(path=pwd())) | |
Pkg.instantiate()' | |
- name: Install git | |
run: | | |
apt-get update | |
apt-get install -y git | |
which git | |
- uses: julia-actions/julia-buildpkg@v1 | |
- uses: julia-actions/julia-docdeploy@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: | | |
julia --project=docs -e ' | |
using Documenter: DocMeta, doctest | |
using WolframExpr | |
using MathLink; W`Sin`; | |
DocMeta.setdocmeta!(WolframExpr, :DocTestSetup, :(using WolframExpr); recursive=true) | |
doctest(WolframExpr)' |