Skip to content

Commit 3943590

Browse files
committed
CI: use hyprwm/actions
1 parent b623964 commit 3943590

2 files changed

Lines changed: 20 additions & 28 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
image: archlinux
99
steps:
1010
- name: Checkout repository actions
11-
uses: actions/checkout@v4
11+
uses: actions/checkout@v6
1212
with:
1313
sparse-checkout: .github/actions
1414

.github/workflows/test.yml

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,31 @@
11
name: Test
22

33
on: [push, pull_request, workflow_dispatch]
4+
45
jobs:
56
nix:
67
runs-on: ubuntu-latest
78
steps:
8-
- uses: actions/checkout@v4
9-
10-
- uses: DeterminateSystems/nix-installer-action@main
11-
- uses: DeterminateSystems/magic-nix-cache-action@main
12-
13-
# not needed (yet)
14-
# - uses: cachix/cachix-action@v12
15-
# with:
16-
# name: hyprland
17-
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
9+
- uses: actions/checkout@v6
1810

19-
- name: Build
20-
run: nix build .#hyprcursor-with-tests --print-build-logs --keep-going
11+
- uses: hyprwm/actions/nix-setup@main
2112

22-
# keep a fixed rev in case anything changes
23-
- name: Install hyprcursor theme
24-
run: nix build github:fufexan/dotfiles/4e05e373c1c70a2ae259b2c15eec2ad6e11ce581#bibata-hyprcursor --print-build-logs --keep-going
13+
- name: Build
14+
run: nix build .#hyprcursor-with-tests --print-build-logs --keep-going
2515

26-
- name: Set up env
27-
run: |
28-
export HYPRCURSOR_THEME=Bibata-Modern-Classic-Hyprcursor
29-
export HYPRCURSOR_SIZE=16
30-
mkdir -p $HOME/.local/share/icons
31-
ln -s $(realpath result/share/icons/Bibata-Modern-Classic-Hyprcursor) $HOME/.local/share/icons/
16+
- name: Install hyprcursor theme
17+
run: nix build github:fufexan/dotfiles/4e05e373c1c70a2ae259b2c15eec2ad6e11ce581#bibata-hyprcursor --print-build-logs --keep-going
3218

33-
- name: Run test1
34-
run: nix shell .#hyprcursor-with-tests -c hyprcursor_test1
35-
- name: Run test2
36-
run: nix shell .#hyprcursor-with-tests -c hyprcursor_test2
37-
- name: Run test_c
38-
run: nix shell .#hyprcursor-with-tests -c hyprcursor_test_c
19+
- name: Set up env
20+
run: |
21+
export HYPRCURSOR_THEME=Bibata-Modern-Classic-Hyprcursor
22+
export HYPRCURSOR_SIZE=16
23+
mkdir -p $HOME/.local/share/icons
24+
ln -s $(realpath result/share/icons/Bibata-Modern-Classic-Hyprcursor) $HOME/.local/share/icons/
3925
26+
- name: Run test1
27+
run: nix shell .#hyprcursor-with-tests -c hyprcursor_test1
28+
- name: Run test2
29+
run: nix shell .#hyprcursor-with-tests -c hyprcursor_test2
30+
- name: Run test_c
31+
run: nix shell .#hyprcursor-with-tests -c hyprcursor_test_c

0 commit comments

Comments
 (0)