File tree 1 file changed +32
-2
lines changed
1 file changed +32
-2
lines changed Original file line number Diff line number Diff line change 53
53
path : build/${{ matrix.arch }}
54
54
55
55
nix-spoc :
56
+ strategy :
57
+ fail-fast : false
58
+ matrix :
59
+ arch :
60
+ - amd64
61
+ - arm64
62
+ - ppc64le
63
+ runs-on : ubuntu-22.04
64
+ name : nix / spoc / ${{ matrix.arch }}
65
+ steps :
66
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
67
+ - uses : cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # v28
68
+ with :
69
+ install_url : https://releases.nixos.org/nix/nix-${{ env.NIX_VERSION }}/install
70
+ - uses : cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
71
+ with :
72
+ name : security-profiles-operator
73
+ authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
74
+ pushFilter : security-profiles-operator
75
+ - run : nix-build nix/default-${{ matrix.arch }}.nix
76
+
77
+ nix-spoc-push :
78
+ strategy :
79
+ fail-fast : false
80
+ matrix :
81
+ arch :
82
+ - amd64
83
+ - arm64
84
+ - ppc64le
56
85
if : github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags')
86
+ name : nix / spoc / push / ${{ matrix.arch }}
57
87
runs-on : ubuntu-22.04
58
88
permissions :
59
89
contents : write # required for updating the release
@@ -73,10 +103,10 @@ jobs:
73
103
sudo curl -sSfL --retry 5 --retry-delay 3 -o /usr/bin/bom \
74
104
https://github.com/kubernetes-sigs/bom/releases/download/${{ env.BOM_VERSION }}/bom-amd64-linux
75
105
sudo chmod +x /usr/bin/bom
76
- - run : make nix-spoc
106
+ - run : make nix-spoc-${{ matrix.arch }}
77
107
- uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
78
108
with :
79
- name : spoc
109
+ name : spoc-${{ matrix.arch }}
80
110
path : |
81
111
build/*
82
112
- uses : softprops/action-gh-release@7b4da11513bf3f43f9999e90eabced41ab8bb048 # v2.2.0
You can’t perform that action at this time.
0 commit comments