mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Test build and run Nix Flake in CI (#1477)
Co-authored-by: figsoda <figsoda@pm.me>
This commit is contained in:
parent
04bffc4f12
commit
c44bad5739
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@ -1,6 +1,10 @@
|
|||||||
name: Continuous integration
|
name: Continuous integration
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: "-Dwarnings"
|
RUSTFLAGS: "-Dwarnings"
|
||||||
RUSTDOCFLAGS: "-Dwarnings"
|
RUSTDOCFLAGS: "-Dwarnings"
|
||||||
@ -35,3 +39,15 @@ jobs:
|
|||||||
- uses: dtolnay/rust-toolchain@1.70.0
|
- uses: dtolnay/rust-toolchain@1.70.0
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- run: cargo check --workspace
|
- run: cargo check --workspace
|
||||||
|
|
||||||
|
nix-flake:
|
||||||
|
name: Test Nix Flake
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: DeterminateSystems/nix-installer-action@v4
|
||||||
|
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
||||||
|
- run: nix flake check
|
||||||
|
- run: nix build
|
||||||
|
- run: nix shell -c typst --version
|
||||||
|
- run: nix run . -- --version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user