Skip to content

Change download location InnoSetup in GitHub workflow #325

Change download location InnoSetup in GitHub workflow

Change download location InnoSetup in GitHub workflow #325

Workflow file for this run

name: Build CI release
on:
push:
branches:
- master
# paths:
# - 'Quelea/**'
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '25'
java-package: 'jdk'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
- name: Install Wine and Flatpak
run: |
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install wine wine32 wine64 flatpak flatpak-builder
- name: Setup Inno Setup cache
id: cache-innosetup
uses: actions/cache@v4
with:
path: ~/.wine/drive_c/Program Files (x86)/Inno Setup 6
key: ${{ runner.os }}-innosetup
- name: Install InnoSetup
if: ${{ ! steps.cache-innosetup.outputs.cache-hit }} # || true on Inno Setup update
env:
DISPLAY: :99
WINEDEBUG: -all,err+all
WINEARCH: win64
run: |
Xvfb $DISPLAY &
curl -SL "https://github.com/jrsoftware/issrc/releases/download/is-6_2_1/innosetup-6.2.1.exe" -o is.exe
wine is.exe /SP- /VERYSILENT /ALLUSERS /SUPPRESSMSGBOXES
- name: Build
run: |
cd Quelea
gradle -Dnightly=true -Dversionsuffix=CI-UNSTABLE clean dist
- name: Cache Flatpak
uses: actions/cache@v4
with:
path: |
flatpak/repo
flatpak/builddir
key: flatpak
- name: Build Flatpak
run: |
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
cd flatpak
flatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo builddir org.quelea.Quelea.yml
flatpak build-bundle repo/ ../Quelea/dist/standalone/quelea-CI-UNSTABLE.flatpak org.quelea.Quelea --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
- name: upload-unsigned-artifact
if: ${{ github.event_name == 'push' }}
id: upload-unsigned-artifact
uses: actions/upload-artifact@v4
with:
path: Quelea/dist/standalone/quelea-CI-UNSTABLE-x64-windows-install.exe
- name: Remove unsigned artifact
if: ${{ github.event_name == 'push' }}
run: |
rm -f Quelea/dist/standalone/quelea-CI-UNSTABLE-x64-windows-install.exe
- name: Sign windows installer
if: ${{ github.event_name == 'push' }}
uses: signpath/github-action-submit-signing-request@v1
with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: '47d2e61b-2716-4b94-b15a-91240cb1d14c'
project-slug: 'Quelea'
signing-policy-slug: 'test-signing'
github-artifact-id: '${{ steps.upload-unsigned-artifact.outputs.artifact-id }}'
wait-for-completion: true
output-artifact-directory: 'Quelea/dist/standalone/'
- name: Upload binaries to release
if: ${{ github.event_name == 'push' }}
uses: softprops/action-gh-release@v2
with:
files: Quelea/dist/standalone/*
tag_name: CI-RELEASE
prerelease: true
make_latest: false
body: "**This is a CI Build, built from the latest copy of the source code automatically.
It's not an official release and we don't recommend using this in production.**<br/>
Quelea is also distributed as a Linux snap package. To install it, make
sure snap is installed then run:
<pre>sudo snap install --edge quelea</pre>"
- name: Upload standalones as artifact of PR
if: ${{ github.event_name == 'pull_request' }}
uses: actions/upload-artifact@v4
with:
path: Quelea/dist/standalone/