summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/dependabot.yml8
-rw-r--r--.github/workflows/ci.yml26
-rw-r--r--.github/workflows/deps.yml44
-rw-r--r--.github/workflows/flake.yml32
4 files changed, 110 insertions, 0 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..9922df0
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,8 @@
1version: 2
2updates:
3 - package-ecosystem: github-actions
4 directory: "/"
5 schedule:
6 interval: daily
7 commit-message:
8 prefix: "ci"
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..e0e90f4
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,26 @@
1name: CI
2
3on:
4 pull_request:
5 push:
6 branches:
7 - main
8 workflow_dispatch:
9
10jobs:
11 build:
12 name: Build
13 runs-on: ubuntu-latest
14 steps:
15 - uses: actions/checkout@v4
16
17 - uses: DeterminateSystems/nix-installer-action@v11
18
19 - run: nix -vL --show-trace flake check
20
21 - run: nix -vL --show-trace build
22
23 - uses: actions/upload-artifact@v4
24 with:
25 name: zmk_firmware
26 path: result
diff --git a/.github/workflows/deps.yml b/.github/workflows/deps.yml
new file mode 100644
index 0000000..b1ba83b
--- /dev/null
+++ b/.github/workflows/deps.yml
@@ -0,0 +1,44 @@
1name: Dependencies
2
3on:
4 schedule:
5 - cron: '0 0 * * 0'
6 workflow_dispatch:
7
8permissions:
9 pull-requests: write
10 contents: write
11
12jobs:
13 update:
14 name: Update
15 runs-on: ubuntu-latest
16 permissions:
17 actions: write
18 contents: write
19 pull-requests: write
20 steps:
21 - uses: actions/checkout@v4
22
23 - uses: DeterminateSystems/nix-installer-action@v12
24
25 - run: nix -vL run --show-trace .#update
26
27 - id: create-pr
28 uses: peter-evans/create-pull-request@v6
29 with:
30 branch: update_zmk_config_deps
31 delete-branch: true
32 committer: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'
33 author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'
34 commit-message: 'config,nix: update deps'
35 title: 'config,nix: update deps'
36 labels: 'dependencies'
37 body: |
38 Automated bump of ZMK dependencies
39
40 - uses: benc-uk/workflow-dispatch@v1
41 if: ${{ contains(fromJSON('["created", "updated"]'), steps.create-pr.outputs.pull-request-operation) }}
42 with:
43 workflow: ci.yml
44 ref: refs/heads/update_zmk_config_deps
diff --git a/.github/workflows/flake.yml b/.github/workflows/flake.yml
new file mode 100644
index 0000000..5aef002
--- /dev/null
+++ b/.github/workflows/flake.yml
@@ -0,0 +1,32 @@
1name: Flake
2
3on:
4 schedule:
5 - cron: '0 0 * * 0'
6 workflow_dispatch:
7
8jobs:
9 update:
10 name: Update
11 runs-on: ubuntu-latest
12 permissions:
13 actions: write
14 contents: write
15 pull-requests: write
16 steps:
17 - uses: actions/checkout@v4
18
19 - uses: DeterminateSystems/nix-installer-action@v11
20
21 - id: update-flake-lock
22 uses: DeterminateSystems/update-flake-lock@v21
23 with:
24 commit-msg: 'flake: update inputs'
25 pr-title: 'flake: update inputs'
26 pr-labels: 'dependencies'
27
28 - uses: benc-uk/workflow-dispatch@v1
29 if: ${{ contains(fromJSON('["created", "updated"]'), steps.update-flake-lock.outputs.pull-request-operation) }}
30 with:
31 workflow: ci.yml
32 ref: refs/heads/update_flake_lock_action