@@ -18,10 +18,10 @@ jobs:
18
18
19
19
steps :
20
20
- name : Checkout repository
21
- uses : actions/checkout@v3
21
+ uses : actions/checkout@v2
22
22
23
23
- name : Set up Python ${{ matrix.python-version }}
24
- uses : actions/setup-python@v4
24
+ uses : actions/setup-python@v2
25
25
with :
26
26
python-version : ${{ matrix.python-version }}
27
27
@@ -36,10 +36,28 @@ jobs:
36
36
run : |
37
37
pyinstaller go-dispatch-proxy-gui.spec
38
38
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
40
58
uses : actions/upload-artifact@v2
41
59
with :
42
- name : dist -${{ matrix.os }}
60
+ name : build -${{ matrix.os }}
43
61
path : |
44
- dist/
45
- build/
62
+ *.zip
63
+ *.tar.gz
0 commit comments