Skip to content

Update build.yml

Update build.yml #2

Workflow file for this run

name: Build
on: push
jobs:
build-windows-zip:
name: Windows Build (ZIP)
runs-on: windows-latest
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 5.15.2
arch: win32_msvc2019
cache: true
- name: Checkout Repo
uses: actions/checkout@v4
- name: Download Tools
run: python scripts\download.py
- name: Download OpenSSL
run: choco install -y openssl.light --version=1.1.1.20181020 --x86 --params "/InstallDir:C:\OpenSSL"
- name: Build ZIP Package
id: build
shell: cmd
run: |
set QTDIR=%Qt5_DIR%
set OPENSSL=C:\OpenSSL
call "scripts\windows\packages\zip\build.zip.bat" || exit
set /p VERSION=<VERSION
echo VERSION=%VERSION%>>%GITHUB_ENV%
- name: Upload Assets
uses: ncipollo/release-action@v1
with:
artifacts: apk-editor-studio_windows_${{ env.VERSION }}.zip
artifactErrorsFailBuild: true
allowUpdates: true
omitName: true
omitBody: true
prerelease: true
tag: development
token: ${{ secrets.GITHUB_TOKEN }}
build-linux-appimage:
name: Linux Build (AppImage)
runs-on: ubuntu-20.04
steps:
- name: Install Dependencies
run: |
sudo add-apt-repository ppa:beineri/opt-qt-5.15.2-focal -y
sudo apt-get update -qq
sudo apt-get install qt515base qt515imageformats qt515svg qt515tools libgl1-mesa-dev libsecret-1-dev adb zipalign
- name: Checkout Repo
uses: actions/checkout@v4
- name: Download Tools
run: python3 scripts/download.py
- name: Build AppImage Package
id: build
run: |
source /opt/qt515/bin/qt515-env.sh || true
scripts/linux/packages/appimage/build.appimage.sh
echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV
- name: Upload Assets
uses: ncipollo/release-action@v1
with:
artifacts: scripts/linux/packages/appimage/apk-editor-studio_linux_${{ env.VERSION }}.AppImage
artifactErrorsFailBuild: true
allowUpdates: true
omitName: true
omitBody: true
prerelease: true
tag: development
token: ${{ secrets.GITHUB_TOKEN }}