Skip to content

Commit d0d292f

Browse files
authored
upx maybe? (#12)
1 parent 491048c commit d0d292f

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/rust.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,26 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v4
22-
2322
- name: Cache dependencies
2423
uses: Swatinem/rust-cache@v2.7.3
25-
2624
- name: Build for ${{ matrix.target }}
2725
if: matrix.target != 'x86_64-unknown-linux-gnu'
2826
uses: actions-rs/cargo@v1
2927
with:
3028
use-cross: true
3129
command: build
3230
args: --all --release --target=${{ matrix.target }}
33-
3431
- name: Build for ${{ matrix.target }}
3532
if: matrix.target == 'x86_64-unknown-linux-gnu'
3633
run: cargo build --release --verbose
37-
3834
- name: Copy build
3935
run: find target -type f -name 'cloudflareddns' -or -name 'cloudflareddns.exe' | xargs -I '{}' mv '{}' .
40-
36+
- name: Run UPX
37+
uses: crazy-max/ghaction-upx@v3
38+
with:
39+
version: latest
40+
files: cloudflareddns*
41+
args: -fq --ultra-brute
4142
- name: Artefacts
4243
uses: actions/upload-artifact@v4
4344
with:
@@ -46,6 +47,7 @@ jobs:
4647
path: |
4748
LICENSE
4849
README.md
50+
config.ini.example
4951
cloudflare*
5052
5153
macos-arm64-build:
@@ -59,6 +61,11 @@ jobs:
5961
run: cargo build --release --verbose
6062
- name: Copy build
6163
run: find target -type f -name 'cloudflareddns' | xargs -I '{}' mv '{}' .
64+
# - name: Run UPX
65+
# run: |
66+
# brew install upx
67+
# upx -fq --ultra-brute cloudflareddns
68+
# Error: upx has been disabled because it is crashing for macOS Ventura or above! It was disabled on 2024-09-05
6269
- name: Artefacts
6370
uses: actions/upload-artifact@v4
6471
with:
@@ -67,4 +74,5 @@ jobs:
6774
path: |
6875
LICENSE
6976
README.md
77+
config.ini.example
7078
cloudflare*

0 commit comments

Comments
 (0)