This repository has been archived by the owner on Dec 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (54 loc) · 1.54 KB
/
environments.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: "build"
on:
push:
branches:
- main
pull_request:
jobs:
overlays:
name: Build package ${{ matrix.package }}
runs-on: ubuntu-latest
strategy:
matrix:
package:
- advcp
- elixir-lsp
- erlang-ls
- emacsGit
- keyleds
- rofi-unicode
- keepass
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v12
with:
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210207_fd6eaa1/install
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v8
with: { name: nobbz, signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' }
- run: nix build -L .#${{ matrix.package }}
environment:
name: Build for ${{ matrix.hostname }}
needs: overlays
runs-on: ubuntu-latest
strategy:
matrix:
hostname:
- delly-nixos
- nixos
- tux-nixos
- WS0005
steps:
- uses: actions/checkout@v2.3.4
with: { fetch-depth: 0 }
- uses: cachix/install-nix-action@v12
with:
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210207_fd6eaa1/install
extra_nix_config: experimental-features = nix-command flakes
- uses: cachix/cachix-action@v8
with:
name: nobbz
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
skipPush: github.ref != 'refs/heads/main'
- run: nix build -L .#${{ matrix.hostname }}