File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : build
2+ on :
3+ workflow_dispatch :
4+ pull_request :
5+ types : [opened, synchronize, reopened]
6+ push :
7+ branches :
8+ - trunk
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v4
16+ with :
17+ submodules : recursive
18+
19+ - name : Install Python
20+ uses : actions/setup-python@v4
21+ with :
22+ python-version : 3.13
23+
24+ - name : Make Package
25+ run : |
26+ make package
Original file line number Diff line number Diff line change 11name : release
22on :
33 workflow_dispatch :
4+ inputs :
5+ signed_binary_name :
6+ description : ' Name of the signed binary'
7+ required : false
8+ default : ' spiceai.signed.taco'
9+ type : string
410 release :
511 types : [created]
12+
613jobs :
714 build :
8- runs-on : macos-latest
15+ runs-on : code-signing
16+ if : github.event.action == 'created' && github.event.release.prerelease == true
917 steps :
1018 - name : Checkout
1119 uses : actions/checkout@v4
@@ -17,20 +25,28 @@ jobs:
1725 with :
1826 python-version : 3.13
1927
20- - name : Install Make
28+ - name : Make Package (unsigned)
2129 run : |
22- brew install make
30+ make package
2331
24- - name : Package (unsigned)
32+ - name : Set up Java for signing
33+ uses : actions/setup-java@v4
34+ with :
35+ java-version : ' 11'
36+ distribution : ' zulu'
37+
38+ - name : Sign ${{ inputs.signed_binary_name}}
39+ env :
40+ DIGICERT_KEY_ALIAS : ${{ secrets.DIGICERT_KEY_ALIAS }}
2541 run : |
26- make package
27- mv spice.taco spice_unsigned.taco
42+ jarsigner -tsa http://timestamp.digicert.com -verbose -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg pkcs11properties.cfg -sigalg SHA256withRSA -signedjar ${{ inputs.signed_binary_name}} spice.taco $DIGICERT_KEY_ALIAS
43+ shell : bash
2844
29- - name : Upload
45+ - name : Upload to release
3046 uses : softprops/action-gh-release@v2
3147 if : startsWith(github.ref, 'refs/tags/')
3248 with :
3349 draft : true
3450 prerelease : true
3551 fail_on_unmatched_files : true
36- files : spice_unsigned.taco
52+ files : ${{ inputs.signed_binary_name }}
You can’t perform that action at this time.
0 commit comments