mirror of
https://github.com/wez/wezterm.git
synced 2025-01-03 11:11:43 +03:00
Added: nix nightly build to cachix
This commit is contained in:
parent
832c533c5f
commit
797234fddf
38
.github/workflows/nix_continuous.yml
vendored
Normal file
38
.github/workflows/nix_continuous.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
name: nix_continuous
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "10 3 * * *"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '**/*.rs'
|
||||
- '.github/workflows/nix.yml'
|
||||
- 'nix/**'
|
||||
|
||||
jobs:
|
||||
lints:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install nix
|
||||
uses: DeterminateSystems/nix-installer-action@main
|
||||
- name: Cache build artifacts
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- name: Check flake inputs
|
||||
uses: DeterminateSystems/flake-checker-action@main
|
||||
with:
|
||||
flake-lock-path: ./nix/flake.lock
|
||||
ignore-missing-flake-lock: false
|
||||
- name: Setup Cachix
|
||||
uses: cachix/cachix-action@v27
|
||||
with:
|
||||
name: wezterm
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- name: Build default package
|
||||
run: |
|
||||
nix build ./nix --json \
|
||||
| jq -r '.[].outputs | to_entries[].value' \
|
||||
| cachix push wezterm
|
Loading…
Reference in New Issue
Block a user