-
Notifications
You must be signed in to change notification settings - Fork 15
48 lines (48 loc) · 1.44 KB
/
ci.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
# yq '. | explode(.)' .github/_ci.yml >| .github/workflows/ci.yml
name: CI For CloudFlare Dynamic DNS client
on:
pull_request:
branches:
- master
push:
branches:
- master
permissions:
contents: read
concurrency:
group: std-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
discover:
outputs:
hits: ${{ steps.discovery.outputs.hits }}
runs-on: ubuntu-latest
steps:
- uses: nixbuild/nix-quick-install-action@v25
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: divnix/std-action/discover@main
id: discovery
packages:
needs: discover
name: ${{ matrix.target.jobName }}
runs-on: ubuntu-latest
if: fromJSON(needs.discover.outputs.hits).packages.build != ''
strategy:
matrix:
target: ${{ fromJSON(needs.discover.outputs.hits).packages.build }}
steps:
- uses: nixbuild/nix-quick-install-action@v25
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: divnix/std-action/run@main
shells:
needs: discover
name: ${{ matrix.target.jobName }}
runs-on: ubuntu-latest
steps:
- uses: nixbuild/nix-quick-install-action@v25
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: divnix/std-action/run@main
if: fromJSON(needs.discover.outputs.hits).shells.build != ''
strategy:
matrix:
target: ${{ fromJSON(needs.discover.outputs.hits).shells.build }}