Skip to content

Release v0.2.1

Release v0.2.1 #7

Workflow file for this run

name: Tests CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the branches below
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows one to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
# Test for the following Typst versions
# 0.4.0 (earliest supported), 0.6.0 (first version with package management),
# 0.11.0 (latest supported)
typst-version: [v0.4.0, v0.6.0, v0.11.0]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: 📥 Setup Typst
uses: typst-community/setup-typst@v3
id: setup-typst
with:
typst-version: ${{ matrix.typst-version }}
- name: 🛠️ Compile test document (<v0.7.0)
if: ${{ matrix.typst-version != 'v0.11.0' }}
run: "typst --root . compile tests/strfmt-tests.typ"
- name: 🛠️ Compile test document (v0.7.0+)
if: ${{ matrix.typst-version == 'v0.11.0' }}
run: "typst compile tests/strfmt-tests.typ --root ."