mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Add GitHub Actions CI
This commit is contained in:
parent
00266f6a58
commit
5e42bc260e
42
.github/workflows/rust.yml
vendored
Normal file
42
.github/workflows/rust.yml
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
name: Rust
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
working-directory: typstc
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: typstc
|
||||||
|
- name: Checkout tide
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: typst/toddle
|
||||||
|
token: ${{ secrets.TYPSTC_ACTION_TOKEN }} # `GitHub_PAT` is a secret that contains your PAT
|
||||||
|
path: toddle
|
||||||
|
- name: Checkout toddle
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: typst/toddle
|
||||||
|
token: ${{ secrets.TYPSTC_ACTION_TOKEN }} # `GitHub_PAT` is a secret that contains your PAT
|
||||||
|
path: tide
|
||||||
|
- name: Build
|
||||||
|
run: cargo build --verbose
|
||||||
|
- name: Run tests
|
||||||
|
run: cargo test --verbose
|
Loading…
x
Reference in New Issue
Block a user