Skip to content

CI: Reenable 64-bit builds #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 20 additions & 89 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: CI

on:
push:
branches:
- master
paths-ignore:
- '*.md'
- '*.yml'
Expand All @@ -20,7 +22,7 @@ jobs:
echo "BUILD_TAG=$BUILD_TAG" >> $GITHUB_ENV
echo -n $BUILD_TAG > tag
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: tag
path: tag
Expand Down Expand Up @@ -55,10 +57,12 @@ jobs:
run: |
mkdir artifacts
mv -vb build\${{ matrix.configuration }}\extract-xiso.exe, LICENSE.TXT artifacts
- uses: actions/upload-artifact@v2
cd artifacts
powershell Compress-Archive . ../extract-xiso-${{ matrix.artifact_os }}_${{ matrix.configuration }}.zip
- uses: actions/upload-artifact@v4
with:
name: extract-xiso_${{ matrix.artifact_os }}_${{ matrix.configuration }}
path: artifacts
path: extract-xiso-${{ matrix.artifact_os }}_${{ matrix.configuration }}.zip

build-linux:
runs-on: ubuntu-latest
Expand All @@ -76,10 +80,12 @@ jobs:
run: |
mkdir artifacts
mv -v build/extract-xiso LICENSE.TXT artifacts
- uses: actions/upload-artifact@v2
cd artifacts
zip -r ../extract-xiso_${{ runner.os }}.zip *
- uses: actions/upload-artifact@v4
with:
name: extract-xiso_${{ runner.os }}
path: artifacts
path: extract-xiso_${{ runner.os }}.zip

build-macos:
runs-on: macos-latest
Expand All @@ -97,105 +103,30 @@ jobs:
run: |
mkdir artifacts
mv -v build/extract-xiso LICENSE.TXT artifacts
- uses: actions/upload-artifact@v2
cd artifacts
zip -r ../extract-xiso_${{ runner.os }}.zip *
- uses: actions/upload-artifact@v4
with:
name: extract-xiso_${{ runner.os }}
path: artifacts
path: extract-xiso_${{ runner.os }}.zip

Release:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: [build-windows, build-linux, build-macos]
env:
BUILD_TAG:
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: dist
- name: Create archives
run: |
pushd dist/extract-xiso_Win32_Release
zip -r ../extract-xiso-win32-release.zip *
popd
pushd dist/extract-xiso_Win32_Debug
zip -r ../extract-xiso-win32-debug.zip *
popd
###
# Comment out 64 bit builds as they are currently broken
###
# pushd dist/extract-xiso_Win64_Release
# zip -r ../extract-xiso-win64-release.zip *
# popd
# pushd dist/extract-xiso_Win64_Debug
# zip -r ../extract-xiso-win64-debug.zip *
# popd
# pushd dist/extract-xiso_macOS
# zip -r ../extract-xiso-macos.zip *
# popd
- name: Get package info
run: |
echo "BUILD_TAG=$(cat dist/tag/tag)" >> $GITHUB_ENV
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.BUILD_TAG }}
release_name: ${{ env.BUILD_TAG }}
draft: false
name: ${{ env.BUILD_TAG }}
prerelease: false
- name: Upload release assets (Win32 build)
id: upload-release-assets-win32-release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_name: extract-xiso-win32-release.zip
asset_path: dist/extract-xiso-win32-release.zip
asset_content_type: application/zip
- name: Upload release assets (Win32 debug build)
id: upload-release-assets-win32-debug
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_name: extract-xiso-win32-debug.zip
asset_path: dist/extract-xiso-win32-debug.zip
asset_content_type: application/zip
###
# Comment out 64 bit builds as they are currently broken
###
# - name: Upload release assets (Win64 build)
# id: upload-release-assets-win64-release
# uses: actions/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_name: extract-xiso-win64-release.zip
# asset_path: dist/extract-xiso-win64-release.zip
# asset_content_type: application/zip
# - name: Upload release assets (Win64 debug build)
# id: upload-release-assets-win64-debug
# uses: actions/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_name: extract-xiso-win64-debug.zip
# asset_path: dist/extract-xiso-win64-debug.zip
# asset_content_type: application/zip
# - name: Upload release assets (macOS build)
# id: upload-release-assets-macos-release
# uses: actions/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_name: extract-xiso-macos.zip
# asset_path: dist/extract-xiso-macos.zip
# asset_content_type: application/zip
draft: false
files: dist/*/*.zip