Tests CI #31
Workflow file for this run
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: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
# Allows one to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
style: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: ๐พ Restore Homebrew Cache | |
uses: actions/cache@v4 | |
with: | |
path: /home/linuxbrew/.linuxbrew | |
key: ${{ runner.os }}-brew-${{ hashFiles('Brewfile') }} | |
restore-keys: | | |
${{ runner.os }}-brew- | |
- name: ๐บ Set up Homebrew | |
id: set-up-homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: ๐บ Install typstyle | |
run: "brew install typstyle" | |
- name: ๐งน Check style | |
run: "find . -name '*.typ' | xargs typstyle --check -c 120" | |
test_build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Test for the following Typst versions | |
# 0.6.0 (first version with package management), | |
# 0.11.0 (latest supported) | |
typst-version: [v0.11.0, latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: โ๏ธ Setup Typst | |
uses: typst-community/setup-typst@v3 | |
id: setup-typst | |
with: | |
typst-version: ${{ matrix.typst-version }} | |
cache-dependency-path: requirements.typ | |
- name: ๐๏ธ Build Demo Doc | |
run: "typst compile --root . --font-path ./font examples/demo.typ" | |
- name: ๐๏ธ Build Manual | |
run: "typst compile --root . --font-path ./font manual/manual.typ" | |
just_build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: ๐พ Restore Homebrew Cache | |
id: cache-homebrew-restore | |
uses: actions/cache/restore@v4 | |
with: | |
path: /home/linuxbrew/.linuxbrew | |
key: ${{ runner.os }}-brew-${{ hashFiles('Brewfile') }} | |
- name: ๐บ Set up Homebrew | |
id: set-up-homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: ๐บ Install Python | |
run: "brew install python" | |
- name: ๐บ Install imagemagick | |
run: "brew install imagemagick" | |
- name: ๐บ Install Just | |
run: "brew install just" | |
- name: ๐บ Install Whiskers | |
run: "brew install catppuccin/tap/whiskers" | |
- name: ๐บ Install Typst | |
run: "brew install typst" | |
- name: ๐บ Install typstyle | |
run: "brew install typstyle" | |
- name: ๐๏ธ Run Just build | |
run: "just build" |