Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarpeters authored Oct 31, 2024
1 parent a484b7d commit d5c1804
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,16 @@ on:
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
- name: Github Action for Typst
uses: lvignoli/typst-action@v0.1
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
input_file: template/main.typ
output_file: template/main.pdf

0 comments on commit d5c1804

Please sign in to comment.