Skip to content

Commit

Permalink
feat(ci): add run-upx action
Browse files Browse the repository at this point in the history
  • Loading branch information
RealHeart committed Sep 29, 2024
1 parent bac281a commit 0e66b17
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ jobs:
- name: Build App
run: bun run build --target ${{ matrix.config.target }}

- name: Run UPX (Windows)
if: ${{ matrix.config.os == 'windows' }}
uses: crazy-max/ghaction-upx@v3
with:
version: latest
files: |
./src-tauri/target/${{ matrix.config.target }}/release/*.exe
args: -fq

- name: Setup Artifact (Windows)
if: ${{ matrix.config.os == 'windows' }}
run: pwsh scripts/setup-artifact.ps1 ${{ matrix.config.os }} ${{ matrix.config.arch }} ${{ matrix.config.target }}
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ jobs:
- name: Build App
run: bun run build --target ${{ matrix.config.target }}

- name: Run UPX (Windows)
if: ${{ matrix.config.os == 'windows' }}
uses: crazy-max/ghaction-upx@v3
with:
version: latest
files: |
./src-tauri/target/${{ matrix.config.target }}/release/*.exe
args: -fq

- name: Setup Artifact (Windows)
if: ${{ matrix.config.os == 'windows' }}
run: pwsh scripts/setup-artifact.ps1 ${{ matrix.config.os }} ${{ matrix.config.arch }} ${{ matrix.config.target }}
Expand Down

0 comments on commit 0e66b17

Please sign in to comment.