2424 description : ' Commit-ish for liblcm repository'
2525 required : false
2626 default : ' master'
27- s3_copy :
28- description : ' Copy this build result to S3'
29- required : false
30- default : false
3127
3228concurrency :
3329 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
3834 env :
3935 CROWDIN_API_KEY : ${{ secrets.FLEX_CROWDIN_API }}
4036 LcmRootDir : ${{ github.workspace }}/Localizations/LCM
37+ FILESTOSIGNLATER : ./signExternally
4138 name : Build Debug and run Tests
4239 runs-on : windows-latest
4340 steps :
@@ -113,7 +110,7 @@ jobs:
113110 shell : powershell
114111 run : |
115112 cd Build
116- .\build64.bat /t:BuildBaseInstaller /property:config=release;action=test;desktopNotAvailable=true /v:d /bl ^| tee-object -FilePath build.log
113+ .\build64.bat /t:BuildBaseInstaller " /property:config=release;action=test;desktopNotAvailable=true" /v:d /bl ^| tee-object -FilePath build.log
117114 cd ..
118115 cd BuildDir
119116 md5sum *.exe > md5.txt
@@ -143,22 +140,57 @@ jobs:
143140 with :
144141 log-path : Build/test-results.log
145142 token : ${{ secrets.GITHUB_TOKEN }}
146-
147- - name : Copy to S3
148- if : ${{ github.event.inputs.s3_copy }}
149- env :
150- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
151- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
152- AWS_REGION : us-east-1
153- S3_BUCKET : flex-updates
154- S3_KEY : base-build/artifact.tar.gz
143+
144+ - name : Extract burn engines
145+ id : extract_engines
146+ if : github.event_name != 'pull_request'
147+ working-directory : BuildDir
148+ shell : cmd
155149 run : |
156- tar -czf artifact.tar.gz BuildDir
157- aws s3 cp artifact.tar.gz s3://$S3_BUCKET/$S3_KEY
158-
159- - uses : actions/upload-artifact@v4
150+ insignia -ib FieldWorks_Offline.exe -o offline-engine.exe
151+ insignia -ib FieldWorks_Online.exe -o online-engine.exe
152+
153+ - name : Sign Engines
154+ if : github.event_name != 'pull_request'
155+ uses : sillsdev/codesign/trusted-signing-action@v3
156+ with :
157+ credentials : ${{ secrets.TRUSTED_SIGNING_CREDENTIALS }}
158+ files-folder : BuildDir
159+ files-folder-filter : ' *-engine.exe'
160+ description : ' FieldWorks Installer'
161+ description-url : ' https://software.sil.org/fieldworks/'
162+
163+ - name : Reattach Engines
164+ if : github.event_name != 'pull_request'
165+ working-directory : BuildDir
166+ shell : cmd
167+ run : |
168+ insignia -ab online-engine.exe FlexBridge_Online.exe -o FlexBridge_Online.exe
169+ insignia -ab offline-engine.exe FlexBridge_Offline.exe -o FlexBridge_Offline.exe
170+
171+ - name : Sign Bundles
172+ if : github.event_name != 'pull_request'
173+ uses : sillsdev/codesign/trusted-signing-action@v3
174+ with :
175+ credentials : ${{ secrets.TRUSTED_SIGNING_CREDENTIALS }}
176+ files-folder : BuildDir
177+ files-folder-filter : FieldWorks_*.exe
178+ description : ' FieldWorks Installer'
179+ description-url : ' https://software.sil.org/fieldworks/'
180+
181+ - name : Upload Signed Installers
182+ uses : actions/upload-artifact@v4
183+ if : github.event_name != 'pull_request'
184+ with :
185+ name : FieldWorks-Installers
186+ path : BuildDir/FieldWorks_*.exe
187+ if-no-files-found : warn
188+
189+ - name : Upload Build Logs
190+ uses : actions/upload-artifact@v4
191+ if : always()
160192 with :
161193 name : build-logs
162194 path : |
163195 Build/*.log
164- Build/*.binlog
196+ Build/*.binlog
0 commit comments