@@ -20,20 +20,20 @@ jobs:
20
20
matrix :
21
21
include :
22
22
# The first combination is Ubuntu running on an AMD64 processor, building for Windows.
23
- - os : ubuntu-24.04
24
- arch : amd64
25
- target : windows
26
- ext : .exe
23
+ # - os: ubuntu-24.04
24
+ # arch: amd64
25
+ # target: windows
26
+ # ext: .exe
27
27
28
- # The second combination is Ubuntu running on an AMD64 processor, building for Linux.
29
- - os : ubuntu-24.04
30
- arch : amd64
31
- target : linux
28
+ # # The second combination is Ubuntu running on an AMD64 processor, building for Linux.
29
+ # - os: ubuntu-24.04
30
+ # arch: amd64
31
+ # target: linux
32
32
33
33
# The third combination is macOS running on an AMD64 processor, building for Darwin (macOS).
34
- - os : macos-13
35
- arch : amd64
36
- target : darwin
34
+ # - os: macos-13
35
+ # arch: amd64
36
+ # target: darwin
37
37
38
38
# The fourth combination is macOS running on an ARM64 processor, building for Darwin (macOS).
39
39
- os : macos-13
@@ -66,20 +66,46 @@ jobs:
66
66
if : ${{ matrix.target != 'windows' }}
67
67
run : |
68
68
ls -la build/
69
- chmod +x build/node-manager-plugin*
69
+ chmod +x build/node-manager-plugin
70
+ md5 build/node-manager-plugin
70
71
71
- - name : Sign Macos binary
72
- uses : massalabs/massa/.github/actions/sign-macos@ccc3f02e34544f722634a6fb7732cc4bb515e90b
73
- if : ${{ runner.os == 'macOS' }}
72
+ # - name: Sign Macos binary
73
+ # uses: massalabs/massa/.github/actions/sign-macos@ccc3f02e34544f722634a6fb7732cc4bb515e90b
74
+ # if: ${{ runner.os == 'macOS' }}
75
+ # with:
76
+ # paths: "build/node-manager-plugin"
77
+ # certificate-p12-base64: ${{ secrets.APPLE_CERTIFICATE_P12_BASE64 }}
78
+ # certificate-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
79
+ # signing-identity: ${{ vars.APPLE_DEVELOPER_ID_APPLICATION }}
80
+
81
+ - name : Import Apple signing certificate
82
+ uses : Apple-Actions/import-codesign-certs@v3
74
83
with :
75
- paths : " build/node-manager-plugin"
76
- certificate-p12-base64 : ${{ secrets.APPLE_CERTIFICATE_P12_BASE64 }}
77
- certificate-password : ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
78
- signing-identity : ${{ vars.APPLE_DEVELOPER_ID_APPLICATION }}
84
+ p12-file-base64 : ${{ inputs.certificate-p12-base64 }}
85
+ p12-password : ${{ inputs.certificate-password }}
86
+
87
+ - name : Re-sign with entitlements (if custom action doesn't support entitlements)
88
+ if : ${{ runner.os == 'macOS' }}
89
+ run : |
90
+ echo "Re-signing with entitlements to ensure proper hardened runtime..."
91
+ codesign --force --options runtime --entitlements entitlements.plist --sign "${{ vars.APPLE_DEVELOPER_ID_APPLICATION }}" build/node-manager-plugin
92
+ echo "Verifying re-signed binary..."
93
+ codesign --verify --verbose build/node-manager-plugin
94
+
95
+ - name : Verify code signing
96
+ if : ${{ runner.os == 'macOS' }}
97
+ run : |
98
+ echo "Verifying code signature..."
99
+ codesign --verify --verbose build/node-manager-plugin
100
+ codesign --display --verbose=4 build/node-manager-plugin
101
+ spctl --assess --type execute --verbose build/node-manager-plugin || echo "SPCTL assessment failed - this is expected before notarization"
79
102
80
103
- name : Rename Plugin artifact
81
- run :
104
+ run : |
105
+ md5 build/node-manager-plugin
82
106
mv build/node-manager-plugin${{ matrix.ext }} ${{ env.TARGET_NAME }}${{ matrix.ext }}
107
+ ls -la
108
+ md5 ${{ env.TARGET_NAME }}${{ matrix.ext }}
83
109
84
110
- name : Upload artifacts
85
111
uses : actions/upload-artifact@v4
@@ -88,35 +114,35 @@ jobs:
88
114
path : |
89
115
${{ env.TARGET_NAME }}${{ matrix.ext }}
90
116
91
- sign-windows-binary :
92
- name : Sign Windows binary
93
- needs : build
94
- runs-on : windows-latest
95
- permissions :
96
- contents : write
97
- id-token : write
98
- env :
99
- TARGET_NAME : node-manager-plugin_windows-amd64
100
- steps :
101
- - name : Download Windows artifacts
102
- uses : actions/download-artifact@v4
103
- with :
104
- name : ${{ env.TARGET_NAME }}
105
- path : .
117
+ # sign-windows-binary:
118
+ # name: Sign Windows binary
119
+ # needs: build
120
+ # runs-on: windows-latest
121
+ # permissions:
122
+ # contents: write
123
+ # id-token: write
124
+ # env:
125
+ # TARGET_NAME: node-manager-plugin_windows-amd64
126
+ # steps:
127
+ # - name: Download Windows artifacts
128
+ # uses: actions/download-artifact@v4
129
+ # with:
130
+ # name: ${{ env.TARGET_NAME }}
131
+ # path: .
106
132
107
- - name : Sign Windows binary
108
- uses : massalabs/station/.github/actions/sign-file-digicert@413d4c0bbd042d5e797fbb66bcd2c96be5c3e71a
109
- with :
110
- files : ${{ env.TARGET_NAME }}.exe
111
- SM_API_KEY : ${{ secrets.SM_API_KEY }}
112
- SM_CLIENT_CERT_FILE_B64 : ${{ secrets.SM_CLIENT_CERT_FILE_B64 }}
113
- SM_CLIENT_CERT_PASSWORD : ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
114
- SM_CERT_FINGERPRINT : ${{ secrets.SM_CERT_FINGERPRINT }}
115
- SM_HOST : ${{ secrets.SM_HOST }}
116
-
117
- - name : Upload signed Windows zip (overwrite original)
118
- uses : actions/upload-artifact@v4
119
- with :
120
- name : ${{ env.TARGET_NAME }}
121
- path : ./${{ env.TARGET_NAME }}.exe
122
- overwrite : true
133
+ # - name: Sign Windows binary
134
+ # uses: massalabs/station/.github/actions/sign-file-digicert@413d4c0bbd042d5e797fbb66bcd2c96be5c3e71a
135
+ # with:
136
+ # files: ${{ env.TARGET_NAME }}.exe
137
+ # SM_API_KEY: ${{ secrets.SM_API_KEY }}
138
+ # SM_CLIENT_CERT_FILE_B64: ${{ secrets.SM_CLIENT_CERT_FILE_B64 }}
139
+ # SM_CLIENT_CERT_PASSWORD: ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
140
+ # SM_CERT_FINGERPRINT: ${{ secrets.SM_CERT_FINGERPRINT }}
141
+ # SM_HOST: ${{ secrets.SM_HOST }}
142
+
143
+ # - name: Upload signed Windows zip (overwrite original)
144
+ # uses: actions/upload-artifact@v4
145
+ # with:
146
+ # name: ${{ env.TARGET_NAME }}
147
+ # path: ./${{ env.TARGET_NAME }}.exe
148
+ # overwrite: true
0 commit comments