Skip to content

Commit 1fa93cd

Browse files
committed
sign github action build with SignPath
1 parent 16a12dc commit 1fa93cd

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,29 @@ jobs:
6262
env:
6363
PATH: ${{ steps.gcc64.outputs.location }}\bin;${{ steps.gcc32.outputs.location }}\bin;${{ steps.llvm-mingw.outputs.location }}\bin
6464

65+
- name: upload unsigned artifact
66+
id: upload-unsigned-artifact
67+
uses: actions/upload-artifact@v4
68+
with:
69+
name: dwarfstack-unsigned
70+
if-no-files-found: error
71+
path: |
72+
dwarfstack32.dll
73+
dwarfstack64.dll
74+
dwarfstack64a.dll
75+
- name: sign
76+
uses: signpath/github-action-submit-signing-request@v1
77+
env:
78+
SIGNPATH_SIGNING_POLICY_SLUG: ${{ (startsWith(github.ref, 'refs/tags/')) && 'release-signing' || 'test-signing' }}
79+
with:
80+
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
81+
organization-id: '${{ vars.SIGNPATH_ORGANIZATION_ID }}'
82+
project-slug: 'dwarfstack'
83+
signing-policy-slug: '${{ env.SIGNPATH_SIGNING_POLICY_SLUG }}'
84+
github-artifact-id: "${{ steps.upload-unsigned-artifact.outputs.artifact-id }}"
85+
wait-for-completion: true
86+
output-artifact-directory: '.'
87+
6588
- name: copy dlls back to build dirs
6689
run: |
6790
cp dwarfstack32.dll build32/bin/dwarfstack.dll
@@ -84,7 +107,7 @@ jobs:
84107
dwarfstack-*.7z
85108
dwarfstack-*.tar.xz
86109
87-
- name: upload artifact
110+
- name: upload signed artifact
88111
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
89112
uses: actions/upload-artifact@v4
90113
with:

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ using -fno-omit-frame-pointer (and maybe even
3030
-fno-optimize-sibling-calls / -fno-schedule-insns2).
3131
Otherwise, depending on the situation (like gcc version), some frames
3232
might be missing.
33+
34+
35+
code signing:
36+
-------------
37+
Free code signing provided by [SignPath.io](https://about.signpath.io), certificate by [SignPath Foundation](https://signpath.org)

0 commit comments

Comments
 (0)