@@ -123,11 +123,11 @@ jobs:
123
123
# Linux architectures
124
124
- os : ubuntu-latest
125
125
os_name : linux
126
- arch : x86_64
126
+ arch : amd64
127
127
python-version : " 3.12"
128
128
- os : ubuntu-latest
129
129
os_name : linux
130
- arch : aarch64
130
+ arch : arm64
131
131
python-version : " 3.12"
132
132
cross_compile : true
133
133
# Windows architectures
@@ -142,11 +142,11 @@ jobs:
142
142
cross_compile : true
143
143
# macOS architectures
144
144
- os : macos-13 # Intel-based runner
145
- os_name : macos
146
- arch : x86_64
145
+ os_name : darwin
146
+ arch : amd64
147
147
python-version : " 3.12"
148
148
- os : macos-14 # ARM-based runner (M1/M2)
149
- os_name : macos
149
+ os_name : darwin
150
150
arch : arm64
151
151
python-version : " 3.12"
152
152
runs-on : ${{ matrix.os }}
@@ -204,13 +204,13 @@ jobs:
204
204
python -m PyInstaller --onefile --name tzst --console --target-arch arm64 --icon docs/_static/favicon.ico src/main.py
205
205
206
206
- name : Setup cross-compilation for Linux ARM64
207
- if : matrix.os == 'ubuntu-latest' && matrix.arch == 'aarch64 '
207
+ if : matrix.os == 'ubuntu-latest' && matrix.arch == 'arm64 '
208
208
run : |
209
209
sudo apt-get update
210
210
sudo apt-get install -y gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
211
211
212
212
- name : Build binary for ARM64 on Linux
213
- if : matrix.os == 'ubuntu-latest' && matrix.arch == 'aarch64 '
213
+ if : matrix.os == 'ubuntu-latest' && matrix.arch == 'arm64 '
214
214
env :
215
215
CC : aarch64-linux-gnu-gcc
216
216
run : |
@@ -236,19 +236,19 @@ jobs:
236
236
if : matrix.os != 'windows-latest'
237
237
run : |
238
238
cd archive
239
- zip -r ../tzst-v ${{ steps.version.outputs.version }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip .
239
+ zip -r ../tzst-${{ steps.version.outputs.version }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip .
240
240
241
241
- name : Create zip archive (Windows)
242
242
if : matrix.os == 'windows-latest'
243
243
run : |
244
244
cd archive
245
- Compress-Archive -Path * -DestinationPath ../tzst-v ${{ steps.version.outputs.version }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip
245
+ Compress-Archive -Path * -DestinationPath ../tzst-${{ steps.version.outputs.version }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip
246
246
247
247
- name : Upload binary artifacts
248
248
uses : actions/upload-artifact@v4
249
249
with :
250
250
name : binary-${{ matrix.os_name }}-${{ matrix.arch }}
251
- path : tzst-v ${{ steps.version.outputs.version }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip
251
+ path : tzst-${{ steps.version.outputs.version }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip
252
252
253
253
create-release :
254
254
needs : [publish, build-binaries]
@@ -282,10 +282,10 @@ jobs:
282
282
- name : Upload Release Assets
283
283
run : |
284
284
echo "Available files:"
285
- ls -la tzst-v ${{ steps.version.outputs.version }}-*.zip 2>/dev/null || echo "No zip files found"
285
+ ls -la tzst-${{ steps.version.outputs.version }}-*.zip 2>/dev/null || echo "No zip files found"
286
286
287
287
success=0
288
- for file in tzst-v ${{ steps.version.outputs.version }}-*.zip; do
288
+ for file in tzst-${{ steps.version.outputs.version }}-*.zip; do
289
289
if [ -f "$file" ]; then
290
290
echo "Uploading $file"
291
291
if gh release upload ${{ github.ref_name }} "$file" --clobber; then
0 commit comments