Skip to content

2.0.0rc2

2.0.0rc2 #19

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
build:
uses: ./.github/workflows/build-reusable.yml
upload-macos:
needs: build
runs-on: macos-14
strategy:
matrix:
arch: [x64, arm64]
steps:
- uses: actions/checkout@v4
- name: Download macOS artifact
uses: actions/download-artifact@v4
with:
name: Kiwi8-${{ github.ref_name }}-macOS-${{ matrix.arch }}
path: .
- name: Restore executable permissions
run: |
chmod -R u=rwx,go=rx Kiwi8.app
- name: Install create-dmg
run: |
brew install create-dmg
- name: Create macOS DMG
run: |
create-dmg \
--volname "Kiwi8" \
--volicon "macos/resources/Kiwi8.icns" \
--background "macos/resources/dmg_background.png" \
--window-pos 200 120 \
--window-size 660 400 \
--icon-size 96 \
--icon "Kiwi8.app" 100 200 \
--hide-extension "Kiwi8.app" \
--app-drop-link 530 200 \
"Kiwi8-${{ github.ref_name }}-macOS-${{ matrix.arch }}.dmg" \
"Kiwi8.app"
- name: Upload macOS build to Release
uses: softprops/action-gh-release@v2
with:
files: Kiwi8-${{ github.ref_name }}-macOS-${{ matrix.arch }}.dmg
upload-windows:
needs: build
runs-on: windows-2022
strategy:
matrix:
arch: [x64, arm64]
steps:
- name: Download Windows artifact
uses: actions/download-artifact@v4
with:
name: Kiwi8-${{ github.ref_name }}-Windows-${{ matrix.arch }}
path: .
- name: Create Windows release archive
shell: powershell
run: |
Compress-Archive -Path Kiwi8.exe, SDL2.dll, profiles.ini -DestinationPath Kiwi8-${{ github.ref_name }}-Windows-${{ matrix.arch }}.zip
- name: Upload Windows build to Release
uses: softprops/action-gh-release@v2
with:
files: Kiwi8-${{ github.ref_name }}-Windows-${{ matrix.arch }}.zip
upload-linux:
needs: build
runs-on: ubuntu-22.04
strategy:
matrix:
arch: [x64, arm64]
steps:
- name: Download Linux artifact
uses: actions/download-artifact@v4
with:
name: Kiwi8-${{ github.ref_name }}-Debian-${{ matrix.arch }}
path: .
- name: Restore executable permissions
run: |
chmod -R u=rwx,go=rx Kiwi8
- name: Create Linux release archive
run: |
tar czf Kiwi8-${{ github.ref_name }}-Debian-${{ matrix.arch }}.tar.gz Kiwi8 libSDL2-2.0.so.0 profiles.ini
- name: Upload Linux build to Release
uses: softprops/action-gh-release@v2
with:
files: Kiwi8-${{ github.ref_name }}-Debian-${{ matrix.arch }}.tar.gz