Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit b5aee28

Browse files
workflows: Use optimised releases for release builds.
1 parent aa2771d commit b5aee28

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.github/workflows/build_release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
name: Build PowerShell Wrapper
22
on:
33
workflow_call:
4+
inputs:
5+
release:
6+
required: true
7+
type: boolean
8+
default: false
49
permissions: {}
510

611
jobs:
712
wrapper_build:
13+
if: !github.event.inputs.release
814
runs-on: ubuntu-latest
915
steps:
1016
- name: Checkout Repository
@@ -27,10 +33,33 @@ jobs:
2733
with:
2834
name: powershell64-wrapper
2935
path: "powershell64.exe"
36+
release_build:
37+
if: github.event.inputs.release
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout Repository
41+
uses: actions/checkout@v4
42+
- name: Setup APT Packages
43+
uses: awalsh128/cache-apt-pkgs-action@latest
44+
with:
45+
packages: upx-ucl
46+
version: pwsh_wrapper_release
3047
- name: Build Powershell Wrapper (Dist)
48+
if: github.event.inputs.release
3149
run: |
3250
make dist
51+
- name: Upload 32bit Artifact
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: powershell32-wrapper
55+
path: "powershell32.exe"
56+
- name: Upload 64bit Artifact
57+
uses: actions/upload-artifact@v4
58+
with:
59+
name: powershell64-wrapper
60+
path: "powershell64.exe"
3361
- name: Upload Dist Artifacts
62+
if: github.event.inputs.release
3463
uses: actions/upload-artifact@v4
3564
with:
3665
name: powershell-wrapper-dist

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ on: [push, pull_request]
33

44
jobs:
55
ci_run:
6-
uses: ProjectSynchro/powershell-wrapper-for-wine/.github/workflows/build_release.yml@master
6+
uses: ProjectSynchro/powershell-wrapper-for-wine/.github/workflows/build_release.yml@master
7+
with:
8+
release: false

.github/workflows/create_release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ permissions: {}
88
jobs:
99
build_release:
1010
uses: ProjectSynchro/powershell-wrapper-for-wine/.github/workflows/build_release.yml@master
11+
with:
12+
release: true
1113
create_release:
1214
permissions:
1315
contents: write

0 commit comments

Comments
 (0)