Skip to content

Commit 6afc42f

Browse files
committed
CI: Reenable 64-bit builds after c3cdae7
1 parent 3438285 commit 6afc42f

File tree

1 file changed

+20
-89
lines changed

1 file changed

+20
-89
lines changed

.github/workflows/CI.yml

Lines changed: 20 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: CI
22

33
on:
44
push:
5+
branches:
6+
- master
57
paths-ignore:
68
- '*.md'
79
- '*.yml'
@@ -20,7 +22,7 @@ jobs:
2022
echo "BUILD_TAG=$BUILD_TAG" >> $GITHUB_ENV
2123
echo -n $BUILD_TAG > tag
2224
- name: Upload artifacts
23-
uses: actions/upload-artifact@v2
25+
uses: actions/upload-artifact@v4
2426
with:
2527
name: tag
2628
path: tag
@@ -55,10 +57,12 @@ jobs:
5557
run: |
5658
mkdir artifacts
5759
mv -vb build\${{ matrix.configuration }}\extract-xiso.exe, LICENSE.TXT artifacts
58-
- uses: actions/upload-artifact@v2
60+
cd artifacts
61+
powershell Compress-Archive . ../extract-xiso-${{ matrix.artifact_os }}_${{ matrix.configuration }}.zip
62+
- uses: actions/upload-artifact@v4
5963
with:
6064
name: extract-xiso_${{ matrix.artifact_os }}_${{ matrix.configuration }}
61-
path: artifacts
65+
path: extract-xiso-${{ matrix.artifact_os }}_${{ matrix.configuration }}.zip
6266

6367
build-linux:
6468
runs-on: ubuntu-latest
@@ -76,10 +80,12 @@ jobs:
7680
run: |
7781
mkdir artifacts
7882
mv -v build/extract-xiso LICENSE.TXT artifacts
79-
- uses: actions/upload-artifact@v2
83+
cd artifacts
84+
zip -r ../extract-xiso_${{ runner.os }}.zip *
85+
- uses: actions/upload-artifact@v4
8086
with:
8187
name: extract-xiso_${{ runner.os }}
82-
path: artifacts
88+
path: extract-xiso_${{ runner.os }}.zip
8389

8490
build-macos:
8591
runs-on: macos-latest
@@ -97,105 +103,30 @@ jobs:
97103
run: |
98104
mkdir artifacts
99105
mv -v build/extract-xiso LICENSE.TXT artifacts
100-
- uses: actions/upload-artifact@v2
106+
cd artifacts
107+
zip -r ../extract-xiso_${{ runner.os }}.zip *
108+
- uses: actions/upload-artifact@v4
101109
with:
102110
name: extract-xiso_${{ runner.os }}
103-
path: artifacts
111+
path: extract-xiso_${{ runner.os }}.zip
104112

105113
Release:
106114
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
107115
runs-on: ubuntu-latest
108116
needs: [build-windows, build-linux, build-macos]
109-
env:
110-
BUILD_TAG:
111117
steps:
112118
- name: Download artifacts
113-
uses: actions/download-artifact@v2
119+
uses: actions/download-artifact@v4
114120
with:
115121
path: dist
116-
- name: Create archives
117-
run: |
118-
pushd dist/extract-xiso_Win32_Release
119-
zip -r ../extract-xiso-win32-release.zip *
120-
popd
121-
pushd dist/extract-xiso_Win32_Debug
122-
zip -r ../extract-xiso-win32-debug.zip *
123-
popd
124-
###
125-
# Comment out 64 bit builds as they are currently broken
126-
###
127-
# pushd dist/extract-xiso_Win64_Release
128-
# zip -r ../extract-xiso-win64-release.zip *
129-
# popd
130-
# pushd dist/extract-xiso_Win64_Debug
131-
# zip -r ../extract-xiso-win64-debug.zip *
132-
# popd
133-
# pushd dist/extract-xiso_macOS
134-
# zip -r ../extract-xiso-macos.zip *
135-
# popd
136122
- name: Get package info
137123
run: |
138124
echo "BUILD_TAG=$(cat dist/tag/tag)" >> $GITHUB_ENV
139125
- name: Create release
140-
id: create_release
141-
uses: actions/create-release@v1
142-
env:
143-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
126+
uses: softprops/action-gh-release@v2
144127
with:
145128
tag_name: ${{ env.BUILD_TAG }}
146-
release_name: ${{ env.BUILD_TAG }}
147-
draft: false
129+
name: ${{ env.BUILD_TAG }}
148130
prerelease: false
149-
- name: Upload release assets (Win32 build)
150-
id: upload-release-assets-win32-release
151-
uses: actions/[email protected]
152-
env:
153-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
154-
with:
155-
upload_url: ${{ steps.create_release.outputs.upload_url }}
156-
asset_name: extract-xiso-win32-release.zip
157-
asset_path: dist/extract-xiso-win32-release.zip
158-
asset_content_type: application/zip
159-
- name: Upload release assets (Win32 debug build)
160-
id: upload-release-assets-win32-debug
161-
uses: actions/[email protected]
162-
env:
163-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
164-
with:
165-
upload_url: ${{ steps.create_release.outputs.upload_url }}
166-
asset_name: extract-xiso-win32-debug.zip
167-
asset_path: dist/extract-xiso-win32-debug.zip
168-
asset_content_type: application/zip
169-
###
170-
# Comment out 64 bit builds as they are currently broken
171-
###
172-
# - name: Upload release assets (Win64 build)
173-
# id: upload-release-assets-win64-release
174-
# uses: actions/[email protected]
175-
# env:
176-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
177-
# with:
178-
# upload_url: ${{ steps.create_release.outputs.upload_url }}
179-
# asset_name: extract-xiso-win64-release.zip
180-
# asset_path: dist/extract-xiso-win64-release.zip
181-
# asset_content_type: application/zip
182-
# - name: Upload release assets (Win64 debug build)
183-
# id: upload-release-assets-win64-debug
184-
# uses: actions/[email protected]
185-
# env:
186-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
187-
# with:
188-
# upload_url: ${{ steps.create_release.outputs.upload_url }}
189-
# asset_name: extract-xiso-win64-debug.zip
190-
# asset_path: dist/extract-xiso-win64-debug.zip
191-
# asset_content_type: application/zip
192-
# - name: Upload release assets (macOS build)
193-
# id: upload-release-assets-macos-release
194-
# uses: actions/[email protected]
195-
# env:
196-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
197-
# with:
198-
# upload_url: ${{ steps.create_release.outputs.upload_url }}
199-
# asset_name: extract-xiso-macos.zip
200-
# asset_path: dist/extract-xiso-macos.zip
201-
# asset_content_type: application/zip
131+
draft: false
132+
files: dist/*/*.zip

0 commit comments

Comments
 (0)