36
36
- target : " x86_64-w64-mingw32.installer"
37
37
- target : " x86_64-apple-darwin"
38
38
- target : " arm64-apple-darwin"
39
- outputs :
40
- WIN_INSTALLER_ARTIFACT_ID : ${{ steps.win-installer.outputs.WIN_INSTALLER_ARTIFACT_ID }}
41
- WIN_EXECUTABLE_ARTIFACT_ID : ${{ steps.win-executable.outputs.WIN_EXECUTABLE_ARTIFACT_ID }}
39
+
42
40
name : ${{ matrix.toolchain.target }}
43
41
steps :
44
42
- uses : actions/checkout@v4
57
55
path : contrib/depends/sources
58
56
key : sources-${{ hashFiles('contrib/depends/packages/*') }}
59
57
- name : install dependencies
60
- run : sudo apt update; sudo apt -y install guix git ca-certificates apparmor-utils osslsigncode
58
+ run : sudo apt update; sudo apt -y install guix git ca-certificates apparmor-utils
61
59
- name : fix apparmor
62
60
run : sudo cp .github/workflows/guix /etc/apparmor.d/guix; sudo /etc/init.d/apparmor reload; sudo aa-enforce guix || echo "failed"
63
61
- name : purge apparmor
@@ -74,18 +72,11 @@ jobs:
74
72
files : |
75
73
guix/guix-build-*/build/distsrc-*/build/bin/feather.exe
76
74
- uses : actions/upload-artifact@v4
77
- id : upload-artifact
78
75
with :
79
76
name : ${{ matrix.toolchain.target }}
80
77
path : |
81
78
guix/guix-build-*/output/${{ matrix.toolchain.target }}/*
82
79
guix/guix-build-*/logs/${{ matrix.toolchain.target }}/*
83
- - if : ${{ matrix.toolchain.target == 'x86_64-w64-mingw32.installer' }}
84
- id : win-installer
85
- run : echo "WIN_INSTALLER_ARTIFACT_ID=${{ steps.upload-artifact.outputs.artifact-id }}" >> "$GITHUB_OUTPUT"
86
- - if : ${{ matrix.toolchain.target == 'x86_64-w64-mingw32' }}
87
- id : win-executable
88
- run : echo "WIN_EXECUTABLE_ARTIFACT_ID=${{ steps.upload-artifact.outputs.artifact-id }}" >> "$GITHUB_OUTPUT"
89
80
90
81
bundle-logs :
91
82
runs-on : ubuntu-24.04
@@ -109,45 +100,3 @@ jobs:
109
100
artifacts : " **/*.AppImage,**/*-linux-arm.zip,**/*-linux-arm64.zip,**/*-linux-riscv64.zip,**/*-linux.zip,**/*-mac-arm64.zip,**/*-mac.zip,**/*-win.zip,**/FeatherWalletSetup-*.exe,**/feather-${{github.ref_name}}.tar.gz"
110
101
draft : true
111
102
name : v${{github.ref_name}}
112
-
113
- codesigning :
114
- runs-on : ubuntu-24.04
115
- needs : [build-guix, bundle-logs]
116
- if : startsWith(github.ref, 'refs/tags/')
117
- strategy :
118
- fail-fast : false
119
- matrix :
120
- toolchain :
121
- - target : " x86_64-w64-mingw32"
122
- - target : " x86_64-w64-mingw32.installer"
123
- steps :
124
- - name : install dependencies
125
- run : sudo apt update; sudo apt -y install osslsigncode
126
- - name : " set artifact id"
127
- run : |
128
- if [ "${{ matrix.toolchain.target }}" == "x86_64-w64-mingw32" ]; then
129
- echo "ARTIFACT_ID=${{ needs.build-guix.outputs.WIN_EXECUTABLE_ARTIFACT_ID }}" >> $GITHUB_ENV
130
- echo "ARTIFACT_SLUG=executable" >> $GITHUB_ENV
131
- elif [ "${{ matrix.toolchain.target }}" == "x86_64-w64-mingw32.installer" ]; then
132
- echo "ARTIFACT_ID=${{ needs.build-guix.outputs.WIN_INSTALLER_ARTIFACT_ID }}" >> $GITHUB_ENV
133
- echo "ARTIFACT_SLUG=installer" >> $GITHUB_ENV
134
- fi
135
- - uses : signpath/github-action-submit-signing-request@v1
136
- name : " request signature"
137
- with :
138
- api-token : ' ${{ secrets.SIGNPATH_API_KEY }}'
139
- organization-id : ' d3e94749-9c69-44e9-82de-c65cb3832869'
140
- project-slug : ' feather'
141
- signing-policy-slug : ' release-signing'
142
- artifact-configuration-slug : ${{ env.ARTIFACT_SLUG }}
143
- github-artifact-id : ${{ env.ARTIFACT_ID }}
144
- wait-for-completion : true
145
- output-artifact-directory : codesigning/
146
- - name : " extract signature"
147
- run : osslsigncode extract-signature -in codesigning/guix-build-*/output/${{ matrix.toolchain.target }}/*-unsigned.exe -out codesigning/${{ matrix.toolchain.target }}-${{github.ref_name}}.pem
148
- - uses : actions/upload-artifact@v4
149
- name : " upload signature"
150
- with :
151
- name : ${{ matrix.toolchain.target }}.pem
152
- path : |
153
- codesigning/${{ matrix.toolchain.target }}-${{github.ref_name}}.pem
0 commit comments