|
1 | 1 | name: Test |
2 | 2 |
|
3 | 3 | on: [push, pull_request, workflow_dispatch] |
| 4 | + |
4 | 5 | jobs: |
5 | 6 | nix: |
6 | 7 | runs-on: ubuntu-latest |
7 | 8 | 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 |
18 | 10 |
|
19 | | - - name: Build |
20 | | - run: nix build .#hyprcursor-with-tests --print-build-logs --keep-going |
| 11 | + - uses: hyprwm/actions/nix-setup@main |
21 | 12 |
|
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 |
25 | 15 |
|
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 |
32 | 18 |
|
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/ |
39 | 25 |
|
| 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