-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.21 KB
/
Copy pathdevshell.yaml
File metadata and controls
41 lines (34 loc) · 1.21 KB
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
name: Dev Shell
on:
workflow_call:
jobs:
discover:
name: Discover templates
runs-on: ubuntu-24.04
outputs:
templates: ${{ steps.list.outputs.templates }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: List templates
id: list
run: |
templates=$(find templates -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | sort | jq -Rc '[.,inputs]')
echo "templates=$templates" >> "$GITHUB_OUTPUT"
devshell-build:
name: Build devShell (${{ matrix.template }})
needs: discover
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
template: ${{ fromJson(needs.discover.outputs.templates) }}
steps:
- parallel:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: cachix/install-nix-action@13d8dd58da0234aa297dedd986986ccb8e7f3e24 # v31
- uses: cachix/cachix-action@5f2d7c5294214f71b873db4b969586b980625e71 # v17
with:
name: rito528-dotfiles
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build devShell
run: nix build ./templates/${{ matrix.template }}#devShells.x86_64-linux.default