mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
feat(ci): add nix CI
This commit is contained in:
41
.github/workflows/nix.yml
vendored
Normal file
41
.github/workflows/nix.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Nix Flake
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "**.nix"
|
||||
- "flake.lock"
|
||||
- "Cargo.toml"
|
||||
- "Cargo.lock"
|
||||
- "crates/**"
|
||||
- ".github/workflows/nix.yml"
|
||||
pull_request:
|
||||
paths:
|
||||
- "**.nix"
|
||||
- "flake.lock"
|
||||
- "Cargo.toml"
|
||||
- "Cargo.lock"
|
||||
- "crates/**"
|
||||
- ".github/workflows/nix.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
check-flake:
|
||||
name: Validate Flake & Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v16
|
||||
|
||||
- name: Magic Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@v9
|
||||
|
||||
- name: Check flake formatting and evaluation
|
||||
run: nix flake check
|
||||
|
||||
- name: Build default package
|
||||
run: nix build .#default
|
||||
Reference in New Issue
Block a user