File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 2424 description : " Create a GitHub release? (true/false)"
2525 required : false
2626 default : " false"
27+ create_binaries :
28+ description : " Create a Binaries? (true/false)"
29+ required : false
30+ default : " false"
31+ create_images :
32+ description : " Create a Docker Images? (true/false)"
33+ required : false
34+ default : " false"
2735
2836jobs :
2937 generate-matrix :
5563 build :
5664 runs-on : ubuntu-latest
5765 needs : generate-matrix
66+ if : ${{ github.event.inputs.create_binaries == 'true' || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) }}
5867 strategy :
5968 fail-fast : false
6069 matrix :
@@ -139,6 +148,7 @@ jobs:
139148 docker-build :
140149 runs-on : ubuntu-latest
141150 needs : [generate-matrix]
151+ if : ${{ github.event.inputs.create_images == 'true' || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) }}
142152 strategy :
143153 fail-fast : false
144154 matrix :
Original file line number Diff line number Diff line change 5151 '' ;
5252 } ;
5353
54- mkPackage = { arch , os , target } : let
54+ mkPackage = { arch , os , target , ... } : let
5555 crossPkgs = mkCrossPkgs { inherit arch os ; } ;
5656 in pkgs . rustPlatform . buildRustPackage {
5757 pname = "grhooks" ;
107107 } ;
108108 } ;
109109
110- packages = lib . listToAttrs ( map ( { arch , os , target , ... } : {
110+ packages = ( lib . listToAttrs ( map ( { arch , os , target , ... } : {
111111 name = "${ os } -${ arch } " ;
112112 value = mkPackage { inherit arch os target ; } ;
113- } ) architectures ) // ( pkgs . lib . listToAttrs ( map ( { arch , ...} @ args : {
113+ } ) architectures ) ) // ( pkgs . lib . listToAttrs ( map ( { arch , ...} @ args : {
114114 name = "image-${ arch } " ;
115115 value = containerPkg args ;
116116 } ) architectures ) ) ;
You can’t perform that action at this time.
0 commit comments