Skip to content

Commit 4937eeb

Browse files
authored
Update all-platforms.yml
1 parent 670a112 commit 4937eeb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/all-platforms.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
name: "macOS"
2323
build_type: Release
2424
steps:
25-
# ... garde EXACTEMENT tes steps existants pour Linux/macOS ...
2625
- name: Checkout code
2726
uses: actions/checkout@v4
2827
with:
@@ -88,8 +87,9 @@ jobs:
8887
mkdir -p build-win32 && cd build-win32
8988
i686-w64-mingw32-cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT=ON ..
9089
make -j\$(nproc)
91-
cpack -G ZIP
92-
cp FreeMajor-*.zip ../FreeMajor-dev-win32.zip || true
90+
cpack -G ZIP || true
91+
mkdir -p ../release
92+
find . -name "*.exe" -o -name "*.zip" | xargs -I {} cp {} ../release/FreeMajor-dev-win32.zip || true
9393
"
9494
9595
# Win64
@@ -100,9 +100,10 @@ jobs:
100100
mkdir -p build-win64 && cd build-win64
101101
x86_64-w64-mingw32-cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT=ON ..
102102
make -j\$(nproc)
103-
cpack -G ZIP
104-
cp FreeMajor-*.zip ../FreeMajor-dev-win64.zip || true
105-
"
103+
cpack -G ZIP || true
104+
mkdir -p ../release
105+
find . -name "*.exe" -o -name "*.zip" | xargs -I {} cp {} ../release/FreeMajor-dev-win32.zip || true
106+
"
106107
107108
- name: Upload Windows artifacts
108109
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)