Skip to content

Commit

Permalink
Create rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarpeters authored Oct 31, 2024
1 parent 1329c16 commit a484b7d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build Typst

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install Typst
run: cargo install typst-cli --verbose

- name: Build Typst document
run: typst build template/main.typ

- name: Run Typst tests
run: typst check template/main.typ --verbose

0 comments on commit a484b7d

Please sign in to comment.