mirror of
https://github.com/wez/wezterm.git
synced 2024-09-11 14:25:57 +03:00
ci: Add example from magic
https://github.com/DeterminateSystems/magic-nix-cache-action#usage
This commit is contained in:
parent
aef7ebff5e
commit
41ec44a7f9
29
.github/workflows/nix.yml
vendored
Normal file
29
.github/workflows/nix.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: Nix
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '**/*.rs'
|
||||
- '.github/workflows/nix.yml'
|
||||
- 'nix/**'
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '**/*.rs'
|
||||
- '.github/workflows/nix.yml'
|
||||
- 'nix/**'
|
||||
|
||||
jobs:
|
||||
lints:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- uses: DeterminateSystems/flake-checker-action@main
|
||||
- name: Run `nix build`
|
||||
run: nix build .
|
Loading…
Reference in New Issue
Block a user