Compare commits

...

3 Commits

Author SHA1 Message Date
6cbfe33ee7
chore: Update flake.lock
All checks were successful
Perform checks / formatting (push) Successful in 38s
Perform checks / nix_flake_check (push) Successful in 44s
Perform checks / nix_build (push) Successful in 1m12s
2024-11-29 03:45:10 +01:00
42977e1c73
fix: Remove FUNDING.yml
Some checks failed
Perform checks / nix_flake_check (push) Waiting to run
Perform checks / nix_build (push) Waiting to run
Perform checks / formatting (push) Has been cancelled
2024-11-29 03:44:42 +01:00
8385f3e3d6
feat(ci): Add nix flake ci actions 2024-11-29 03:44:37 +01:00
4 changed files with 84 additions and 7 deletions

1
.github/FUNDING.yml vendored

@ -1 +0,0 @@
github: mrcjkb

48
.github/workflows/check.yml vendored Normal file

@ -0,0 +1,48 @@
name: Perform checks
on:
push:
pull_request:
workflow_dispatch:
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Action cache for nix
uses: DeterminateSystems/magic-nix-cache-action@main
with:
fail-mode: true
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4 # This action
- name: Run nix fmt
run: nix fmt -- --check .
nix_flake_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Action cache for nix
uses: DeterminateSystems/magic-nix-cache-action@main
with:
fail-mode: true
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4 # This action
- name: Run nix flake check
run: nix flake check
nix_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: DeterminateSystems/nix-installer-action@main
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4 # This action
- name: Build nvim
run: nix build .\#default

30
.github/workflows/update.yml vendored Normal file

@ -0,0 +1,30 @@
name: Update `flake.lock`
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
jobs:
update_lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Action cache for nix
uses: DeterminateSystems/magic-nix-cache-action@main
with:
fail-mode: true
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
with:
# inputs: dzgui dzgui-testing # We'll see whether I want to limit the updates to dzgui
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
pr-title: "Update flake.lock"
pr-assignees: jiriks74
pr-labels: |
flake.lock
automated
- name: Print PR number
run: echo Pull request number is ${{ steps.update.outputs.pull-request-number }}.

12
flake.lock generated

@ -39,11 +39,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1726560853, "lastModified": 1731533236,
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -181,11 +181,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1729413321, "lastModified": 1732521221,
"narHash": "sha256-I4tuhRpZFa6Fu6dcH9Dlo5LlH17peT79vx1y1SpeKt0=", "narHash": "sha256-2ThgXBUXAE1oFsVATK1ZX9IjPcS4nKFOAjhPNKuiMn0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1997e4aa514312c1af7e2bda7fad1644e778ff26", "rev": "4633a7c72337ea8fd23a4f2ba3972865e3ec685d",
"type": "github" "type": "github"
}, },
"original": { "original": {