5858 name : typr-corrige-darwin-${{ matrix.arch }}
5959 path : typr-corrige-darwin-${{ matrix.arch }}
6060
61- - name : Upload to release
62- if : github.event_name == 'release'
63- uses : actions/upload-release-asset@v1
64- env :
65- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66- with :
67- upload_url : ${{ github.event.release.upload_url }}
68- asset_path : ./typr-corrige-darwin-${{ matrix.arch }}
69- asset_name : typr-corrige-darwin-${{ matrix.arch }}
70- asset_content_type : application/octet-stream
7161
7262 build-linux :
7363 name : Build Linux
@@ -103,26 +93,31 @@ jobs:
10393 libxrandr-dev \
10494 libxinerama-dev \
10595 libxi-dev \
106- libxxf86vm-dev
96+ libxxf86vm-dev \
97+ libxkbcommon-dev \
98+ libwayland-dev \
99+ libwayland-egl-dev
107100
108101 # Install cross-compilation toolchain for ARM64
109102 if [ "${{ matrix.arch }}" == "arm64" ]; then
110103 sudo dpkg --add-architecture arm64
111104 sudo apt-get update
112105 sudo apt-get install -y \
113- gcc-aarch64-linux-gnu \
114- g++-aarch64-linux-gnu \
115- libgl1-mesa-dev:arm64 \
116- libx11-dev:arm64 \
117- libxcursor-dev:arm64 \
118- libxrandr-dev:arm64 \
119- libxinerama-dev:arm64 \
120- libxi-dev:arm64 \
121- libxxf86vm-dev:arm64 \
122- libxkbcommon-dev:arm64 \
123- libudev-dev:arm64 \
124- libinput-dev:arm64 \
125- libstdc++-13-dev:arm64
106+ gcc-aarch64-linux-gnu \
107+ g++-aarch64-linux-gnu \
108+ libgl1-mesa-dev:arm64 \
109+ libx11-dev:arm64 \
110+ libxcursor-dev:arm64 \
111+ libxrandr-dev:arm64 \
112+ libxinerama-dev:arm64 \
113+ libxi-dev:arm64 \
114+ libxxf86vm-dev:arm64 \
115+ libxkbcommon-dev:arm64 \
116+ libwayland-dev:arm64 \
117+ libwayland-egl-dev:arm64 \
118+ libudev-dev:arm64 \
119+ libinput-dev:arm64 \
120+ libstdc++-13-dev:arm64
126121 fi
127122
128123 - name : Get version
@@ -149,16 +144,6 @@ jobs:
149144 name : typr-corrige-linux-${{ matrix.arch }}
150145 path : typr-corrige-linux-${{ matrix.arch }}
151146
152- - name : Upload to release
153- if : github.event_name == 'release'
154- uses : actions/upload-release-asset@v1
155- env :
156- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
157- with :
158- upload_url : ${{ github.event.release.upload_url }}
159- asset_path : ./typr-corrige-linux-${{ matrix.arch }}
160- asset_name : typr-corrige-linux-${{ matrix.arch }}
161- asset_content_type : application/octet-stream
162147
163148 build-windows :
164149 name : Build Windows
@@ -209,13 +194,88 @@ jobs:
209194 name : typr-corrige-windows-${{ matrix.arch }}
210195 path : typr-corrige-windows-${{ matrix.arch }}.exe
211196
212- - name : Upload to release
213- if : github.event_name == 'release'
197+ publish-release :
198+ name : Publish to Release
199+ runs-on : ubuntu-latest
200+ needs : [build-macos, build-linux, build-windows]
201+ if : github.event_name == 'release'
202+ steps :
203+ - name : Download darwin-amd64 artifact
204+ uses : actions/download-artifact@v4
205+ with :
206+ name : typr-corrige-darwin-amd64
207+ path : ./typr-corrige-darwin-amd64
208+
209+ - name : Download darwin-arm64 artifact
210+ uses : actions/download-artifact@v4
211+ with :
212+ name : typr-corrige-darwin-arm64
213+ path : ./typr-corrige-darwin-arm64
214+
215+ - name : Download linux-amd64 artifact
216+ uses : actions/download-artifact@v4
217+ with :
218+ name : typr-corrige-linux-amd64
219+ path : ./typr-corrige-linux-amd64
220+
221+ - name : Download linux-arm64 artifact
222+ uses : actions/download-artifact@v4
223+ with :
224+ name : typr-corrige-linux-arm64
225+ path : ./typr-corrige-linux-arm64
226+
227+ - name : Download windows-amd64 artifact
228+ uses : actions/download-artifact@v4
229+ with :
230+ name : typr-corrige-windows-amd64
231+ path : ./typr-corrige-windows-amd64.exe
232+
233+ - name : Upload darwin-amd64 to release
234+ uses : actions/upload-release-asset@v1
235+ env :
236+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
237+ with :
238+ upload_url : ${{ github.event.release.upload_url }}
239+ asset_path : ./typr-corrige-darwin-amd64
240+ asset_name : typr-corrige-darwin-amd64
241+ asset_content_type : application/octet-stream
242+
243+ - name : Upload darwin-arm64 to release
244+ uses : actions/upload-release-asset@v1
245+ env :
246+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
247+ with :
248+ upload_url : ${{ github.event.release.upload_url }}
249+ asset_path : ./typr-corrige-darwin-arm64
250+ asset_name : typr-corrige-darwin-arm64
251+ asset_content_type : application/octet-stream
252+
253+ - name : Upload linux-amd64 to release
254+ uses : actions/upload-release-asset@v1
255+ env :
256+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
257+ with :
258+ upload_url : ${{ github.event.release.upload_url }}
259+ asset_path : ./typr-corrige-linux-amd64
260+ asset_name : typr-corrige-linux-amd64
261+ asset_content_type : application/octet-stream
262+
263+ - name : Upload linux-arm64 to release
264+ uses : actions/upload-release-asset@v1
265+ env :
266+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
267+ with :
268+ upload_url : ${{ github.event.release.upload_url }}
269+ asset_path : ./typr-corrige-linux-arm64
270+ asset_name : typr-corrige-linux-arm64
271+ asset_content_type : application/octet-stream
272+
273+ - name : Upload windows-amd64 to release
214274 uses : actions/upload-release-asset@v1
215275 env :
216276 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
217277 with :
218278 upload_url : ${{ github.event.release.upload_url }}
219- asset_path : ./typr-corrige-windows-${{ matrix.arch }} .exe
220- asset_name : typr-corrige-windows-${{ matrix.arch }} .exe
279+ asset_path : ./typr-corrige-windows-amd64 .exe
280+ asset_name : typr-corrige-windows-amd64 .exe
221281 asset_content_type : application/octet-stream
0 commit comments