@@ -205,15 +205,12 @@ jobs:
205205 asset_path : src-tauri/target/release/bundle/deb/defguard-client_${{ env.VERSION }}_${{ matrix.deb_arch }}.deb
206206 asset_name : defguard-client_${{ env.VERSION }}_${{ matrix.deb_arch }}.deb
207207 asset_content_type : application/octet-stream
208- - name : Rename client binary
209- run : mv src-tauri/target/release/defguard-client defguard-client-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}
208+ - name : Rename and tar client binary
210209 - name : Tar client binary
211- uses : a7ul/tar-action@v1.2.0
212- with :
213- command : c
214- files : |
210+ run : |
211+ mv src-tauri/target/release/defguard-client defguard-client-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}
212+ tar -zcf defguard-client-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.tar.gz \
215213 defguard-client-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}
216- outPath : defguard-client-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.tar.gz
217214 - name : Upload client archive
218215 uses : actions/upload-release-asset@v1
219216 env :
@@ -223,15 +220,12 @@ jobs:
223220 asset_path : defguard-client-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.tar.gz
224221 asset_name : defguard-client-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.tar.gz
225222 asset_content_type : application/octet-stream
226- - name : Rename daemon binary
227- run : mv src-tauri/target/release/defguard-service defguard-service-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}
223+ - name : Rename and tar daemon binary
228224 - name : Tar daemon binary
229- uses : a7ul/tar-action@v1.2.0
230- with :
231- command : c
232- files : |
225+ run : |
226+ mv src-tauri/target/release/defguard-service defguard-service-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}
227+ tar -zcf defguard-service-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.tar.gz \
233228 defguard-service-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}
234- outPath : defguard-service-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.tar.gz
235229 - name : Upload daemon archive
236230 uses : actions/upload-release-asset@v1
237231 env :
@@ -242,15 +236,11 @@ jobs:
242236 asset_name : defguard-service-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.tar.gz
243237 asset_content_type : application/octet-stream
244238
245- - name : Rename dg binary
246- run : mv src-tauri/target/release/dg dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}
247- - name : Tar dg binary
248- uses : a7ul/tar-action@v1.2.0
249- with :
250- command : c
251- files : |
239+ - name : Rename and tar dg binary
240+ run : |
241+ mv src-tauri/target/release/dg dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}
242+ tar -zcf dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.tar.gz \
252243 dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}
253- outPath : dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.tar.gz
254244 - name : Upload dg archive
255245 uses : actions/upload-release-asset@v1
256246 env :
@@ -290,98 +280,98 @@ jobs:
290280 asset_content_type : application/octet-stream
291281
292282 # Builds Windows MSI and uploads it as artifact
293- build-windows :
294- needs :
295- - create-release
296- strategy :
297- fail-fast : false
298- matrix :
299- windows_runner :
300- - windows-latest
301- - windows-11-arm
302- include :
303- - windows_runner : windows-latest
304- cpu : x64
305- - windows_runner : windows-11-arm
306- cpu : arm64
307- runs-on : ${{ matrix.windows_runner }}
308- steps :
309- - uses : actions/checkout@v6
310- with :
311- submodules : recursive
312- - name : Write release version
313- run : |
314- $env:VERSION=echo ($env:GITHUB_REF_NAME.Substring(1) -Split "-")[0]
315- echo Version: $env:VERSION
316- echo "VERSION=$env:VERSION" >> $env:GITHUB_ENV
317- - uses : actions/setup-node@v6
318- with :
319- node-version : " 24"
320- - uses : pnpm/action-setup@v5
321- with :
322- version : 10
323- run_install : false
324- - name : Get pnpm store directory
325- shell : bash
326- run : echo "STORE_PATH=$(pnpm store path --silent)" >> ${GITHUB_ENV}
327- - uses : actions/cache@v5
328- name : Setup pnpm cache
329- with :
330- path : ${{ env.STORE_PATH }}
331- key : ${{ runner.os }}-pnpm-build-store-${{ hashFiles('**/pnpm-lock.yaml') }}
332- restore-keys : |
333- ${{ runner.os }}-pnpm-build-store-
334- - name : Install deps
335- run : pnpm install --frozen-lockfile
336- - uses : dtolnay/rust-toolchain@stable
337- - name : Install Protoc
338- uses : arduino/setup-protoc@v3
339- with :
340- repo-token : ${{ secrets.GITHUB_TOKEN }}
341- - name : Build packages
342- uses : tauri-apps/tauri-action@v0.5.23 # 0.5.24 - 0.6.1 give: Error: Could not find workspace directory, but version and/or name specifies to use workspace package
343- env :
344- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
345- - name : Upload unsigned bundle
346- uses : actions/upload-artifact@v4
347- with :
348- name : unsigned-bundle-${{ matrix.cpu }}
349- path : src-tauri/target/release/bundle/msi/Defguard_${{ env.VERSION }}_${{ matrix.cpu }}_en-US.msi
283+ # build-windows:
284+ # needs:
285+ # - create-release
286+ # strategy:
287+ # fail-fast: false
288+ # matrix:
289+ # windows_runner:
290+ # - windows-latest
291+ # - windows-11-arm
292+ # include:
293+ # - windows_runner: windows-latest
294+ # cpu: x64
295+ # - windows_runner: windows-11-arm
296+ # cpu: arm64
297+ # runs-on: ${{ matrix.windows_runner }}
298+ # steps:
299+ # - uses: actions/checkout@v6
300+ # with:
301+ # submodules: recursive
302+ # - name: Write release version
303+ # run: |
304+ # $env:VERSION=echo ($env:GITHUB_REF_NAME.Substring(1) -Split "-")[0]
305+ # echo Version: $env:VERSION
306+ # echo "VERSION=$env:VERSION" >> $env:GITHUB_ENV
307+ # - uses: actions/setup-node@v6
308+ # with:
309+ # node-version: "24"
310+ # - uses: pnpm/action-setup@v5
311+ # with:
312+ # version: 10
313+ # run_install: false
314+ # - name: Get pnpm store directory
315+ # shell: bash
316+ # run: echo "STORE_PATH=$(pnpm store path --silent)" >> ${GITHUB_ENV}
317+ # - uses: actions/cache@v5
318+ # name: Setup pnpm cache
319+ # with:
320+ # path: ${{ env.STORE_PATH }}
321+ # key: ${{ runner.os }}-pnpm-build-store-${{ hashFiles('**/pnpm-lock.yaml') }}
322+ # restore-keys: |
323+ # ${{ runner.os }}-pnpm-build-store-
324+ # - name: Install deps
325+ # run: pnpm install --frozen-lockfile
326+ # - uses: dtolnay/rust-toolchain@stable
327+ # - name: Install Protoc
328+ # uses: arduino/setup-protoc@v3
329+ # with:
330+ # repo-token: ${{ secrets.GITHUB_TOKEN }}
331+ # - name: Build packages
332+ # uses: tauri-apps/tauri-action@v0.5.23 # 0.5.24 - 0.6.1 give: Error: Could not find workspace directory, but version and/or name specifies to use workspace package
333+ # env:
334+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
335+ # - name: Upload unsigned bundle
336+ # uses: actions/upload-artifact@v4
337+ # with:
338+ # name: unsigned-bundle-${{ matrix.cpu }}
339+ # path: src-tauri/target/release/bundle/msi/Defguard_${{ env.VERSION }}_${{ matrix.cpu }}_en-US.msi
350340
351341 # Signs the MSI and uploads it as release asset
352- sign-bundle :
353- needs :
354- - create-release
355- - build-windows
356- strategy :
357- fail-fast : false
358- matrix :
359- # Match CPUs from build-windows above.
360- cpu :
361- - x64
362- - arm64
363- runs-on :
364- - self-hosted
365- - Linux
366- - X64
367- steps :
368- - name : Write release version
369- run : |
370- VERSION=$(echo ${GITHUB_REF_NAME#v} | cut -d '-' -f1)
371- echo Version: $VERSION
372- echo "VERSION=$VERSION" >> ${GITHUB_ENV}
373- - name : Download unsigned bundle
374- uses : actions/download-artifact@v4
375- with :
376- name : unsigned-bundle-${{ matrix.cpu }}
377- - name : Sign bundle
378- run : osslsigncode sign -pkcs11module /srv/codesign/certum/sc30pkcs11-3.0.6.72-MS.so -pkcs11cert ${{ secrets.CODESIGN_KEYID }} -key ${{ secrets.CODESIGN_KEYID }} -pass ${{ secrets.CODESIGN_PIN }} -h sha256 -t http://time.certum.pl/ -in Defguard_${{ env.VERSION }}_${{ matrix.cpu }}_en-US.msi -out Defguard-signed.msi
379- - name : Upload installer asset
380- uses : actions/upload-release-asset@v1
381- env :
382- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
383- with :
384- upload_url : ${{ needs.create-release.outputs.upload_url }}
385- asset_path : Defguard-signed.msi
386- asset_name : Defguard_${{ env.VERSION }}_${{ matrix.cpu }}_en-US.msi
387- asset_content_type : application/octet-stream
342+ # sign-bundle:
343+ # needs:
344+ # - create-release
345+ # - build-windows
346+ # strategy:
347+ # fail-fast: false
348+ # matrix:
349+ # # Match CPUs from build-windows above.
350+ # cpu:
351+ # - x64
352+ # - arm64
353+ # runs-on:
354+ # - self-hosted
355+ # - Linux
356+ # - X64
357+ # steps:
358+ # - name: Write release version
359+ # run: |
360+ # VERSION=$(echo ${GITHUB_REF_NAME#v} | cut -d '-' -f1)
361+ # echo Version: $VERSION
362+ # echo "VERSION=$VERSION" >> ${GITHUB_ENV}
363+ # - name: Download unsigned bundle
364+ # uses: actions/download-artifact@v4
365+ # with:
366+ # name: unsigned-bundle-${{ matrix.cpu }}
367+ # - name: Sign bundle
368+ # run: osslsigncode sign -pkcs11module /srv/codesign/certum/sc30pkcs11-3.0.6.72-MS.so -pkcs11cert ${{ secrets.CODESIGN_KEYID }} -key ${{ secrets.CODESIGN_KEYID }} -pass ${{ secrets.CODESIGN_PIN }} -h sha256 -t http://time.certum.pl/ -in Defguard_${{ env.VERSION }}_${{ matrix.cpu }}_en-US.msi -out Defguard-signed.msi
369+ # - name: Upload installer asset
370+ # uses: actions/upload-release-asset@v1
371+ # env:
372+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
373+ # with:
374+ # upload_url: ${{ needs.create-release.outputs.upload_url }}
375+ # asset_path: Defguard-signed.msi
376+ # asset_name: Defguard_${{ env.VERSION }}_${{ matrix.cpu }}_en-US.msi
377+ # asset_content_type: application/octet-stream
0 commit comments