File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff 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 :
4647 path : |
4748 LICENSE
4849 README.md
50+ config.ini.example
4951 cloudflare*
5052
5153 macos-arm64-build :
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 :
6774 path : |
6875 LICENSE
6976 README.md
77+ config.ini.example
7078 cloudflare*
File renamed without changes.
You can’t perform that action at this time.
0 commit comments