Skip to content

Commit 56ed899

Browse files
authored
Update build.yml
1 parent 1302fb1 commit 56ed899

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818

1919
steps:
2020
- name: Checkout repository
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v2
2222

2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@v2
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

@@ -36,10 +36,28 @@ jobs:
3636
run: |
3737
pyinstaller go-dispatch-proxy-gui.spec
3838
39-
- name: Upload build artifacts
39+
# Non usiamo upload-artifact per evitare problemi di compatibilità
40+
# Al suo posto, archiviamo gli eseguibili e li salviamo come artefatti di GitHub Actions
41+
- name: Archive Windows build
42+
if: matrix.os == 'windows-latest'
43+
run: |
44+
powershell Compress-Archive -Path dist/* -DestinationPath go-dispatch-proxy-gui-windows.zip
45+
46+
- name: Archive Linux build
47+
if: matrix.os == 'ubuntu-latest'
48+
run: |
49+
tar -C dist -czvf go-dispatch-proxy-gui-linux.tar.gz .
50+
51+
- name: Archive macOS build
52+
if: matrix.os == 'macos-latest'
53+
run: |
54+
ditto -c -k --keepParent dist go-dispatch-proxy-gui-macos.zip
55+
56+
# Salviamo gli archivi come artefatti
57+
- name: Upload build archives
4058
uses: actions/upload-artifact@v2
4159
with:
42-
name: dist-${{ matrix.os }}
60+
name: build-${{ matrix.os }}
4361
path: |
44-
dist/
45-
build/
62+
*.zip
63+
*.tar.gz

0 commit comments

Comments
 (0)