mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-27 10:52:52 +01:00
ci(github): run checks and build with nix
This commit is contained in:
1 parent
0b88af0fee
commit
a2831d2b7f
9 files changed
+214
-124
No files matched your search
@@ -0,0 +1,39 @@
|
||||
# Adapted from https://github.com/rust-lang/rustup/blob/master/.github/workflows/windows-builds-on-master.yaml
|
||||
|
||||
name: nix
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- "*"
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- feature/*
|
||||
- hotfix/*
|
||||
tags:
|
||||
- v*
|
||||
# schedule:
|
||||
# - cron: "30 0 * * 0" # Every day at 00:30 UTC
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: true
|
||||
runs-on: self-hosted
|
||||
permissions: write-all
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- run: nix flake check
|
||||
- run: nix build
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: komorebi-aarch64-apple-darwin-${{ github.sha }}
|
||||
path: |
|
||||
result/bin/komorebi*
|
||||
retention-days: 90
|
||||
Reference in new issue
Block a user