@@ -34,7 +34,7 @@ defaults:
3434
3535jobs :
3636 remote :
37- name : Build for ${{ matrix.os }}
37+ name : Build for ${{ matrix.os }}${{ matrix.debug == 1 && ' (debug)' || '' }}
3838 strategy :
3939 fail-fast : false
4040 matrix :
4343 - windows-latest
4444 - macos-latest
4545 - macos-15-intel
46+ debug :
47+ - 0
48+ - 1
4649 runs-on : ${{ matrix.os }}
4750 steps :
4851 - name : Install Apt packages
@@ -51,11 +54,20 @@ jobs:
5154 uses : awalsh128/cache-apt-pkgs-action@latest
5255 with :
5356 execute_install_scripts : true
54- packages : libfuse-dev
57+ packages : libfuse-dev upx-ucl
5558 version : 1.0
59+ - name : Install windows packages
60+ if : matrix.os == 'windows-latest'
61+ run : |
62+ winget install -e \
63+ --id UPX.UPX \
64+ --disable-interactivity \
65+ --accept-source-agreements \
66+ --accept-package-agreements
67+ echo "$LOCALAPPDATA/Microsoft/WinGet/Links/" >> $GITHUB_PATH
5668 - name : Install brew packages
5769 if : matrix.os == 'macos-latest' || matrix.os == 'macos-15-intel'
58- run : brew install coreutils
70+ run : brew install coreutils upx
5971 - name : Checkout the Git repository
6072 uses : actions/checkout@v4
6173 - name : ccache
@@ -82,14 +94,14 @@ jobs:
8294 run : chmod +x ./scripts/github-make-executable.sh
8395 - name : Build codexctl
8496 shell : bash
85- run : ./scripts/github-make-executable.sh
97+ run : DEBUG_BUILD=${{ matrix.debug }} ./scripts/github-make-executable.sh
8698 env :
8799 nuitka_cache : ${{ github.workspace }}/.nuitka
88100 - name : Upload Compilation Report
89101 uses : actions/upload-artifact@v4
90102 if : (success() || failure()) && runner.debug == '1'
91103 with :
92- name : ${{ matrix.os }}-compilation-report
104+ name : ${{ matrix.os }}${{ matrix.debug == 1 && '-debug' || '' }} -compilation-report
93105 path : compilation-report.xml
94106 if-no-files-found : warn
95107 - name : Move .ccache
@@ -102,19 +114,25 @@ jobs:
102114 if : matrix.os != 'windows-latest'
103115 uses : actions/upload-artifact@v4
104116 with :
105- name : ${{ matrix.os }}
117+ name : ${{ matrix.os }}${{ matrix.debug == 1 && '-debug' || '' }}
106118 path : dist/codexctl
107119 if-no-files-found : error
108120 - name : Upload executable
109121 if : matrix.os == 'windows-latest'
110122 uses : actions/upload-artifact@v4
111123 with :
112- name : ${{ matrix.os }}
124+ name : ${{ matrix.os }}${{ matrix.debug == 1 && '-debug' || '' }}
113125 path : dist/codexctl.exe
114126 if-no-files-found : error
115127 device :
116- name : Build for remarkable
128+ name : Build for remarkable${{ matrix.debug == 1 && ' (debug)' || '' }}
117129 runs-on : ubuntu-latest
130+ strategy :
131+ fail-fast : false
132+ matrix :
133+ debug :
134+ - 0
135+ - 1
118136 steps :
119137 - name : Free up disk space
120138 shell : bash
@@ -161,18 +179,18 @@ jobs:
161179 cd /src
162180 source /opt/lib/nuitka/bin/activate
163181 chmod +x ./scripts/github-make-executable.sh
164- ./scripts/github-make-executable.sh
182+ DEBUG_BUILD=${{ matrix.debug }} ./scripts/github-make-executable.sh
165183 - name : Upload Compilation Report
166184 uses : actions/upload-artifact@v4
167185 if : runner.debug == '1'
168186 with :
169- name : remarkable-compilation-report
187+ name : remarkable${{ matrix.debug == 1 && '-debug' || '' }} -compilation-report
170188 path : compilation-report.xml
171189 if-no-files-found : warn
172190 - name : Upload executable
173191 uses : actions/upload-artifact@v4
174192 with :
175- name : remarkable
193+ name : remarkable${{ matrix.debug == 1 && '-debug' || '' }}
176194 path : dist/codexctl
177195 if-no-files-found : error
178196 test_device :
0 commit comments