Skip to content

Commit

Permalink
Working on github action to build and sign the Windows installer.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeheydorn committed Nov 26, 2024
1 parent f5c31dc commit 98a7371
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Sign Installers
name: Build and Sign Windows Installer

on:
push:
Expand All @@ -19,6 +19,13 @@ jobs:
java-version: '22'
distribution: 'temurin'

- name: Extract Version from Windows Script
id: extract_version_windows
run: |
version=$(grep -- '--app-version' installer/create_windows_installer.bat | sed 's/.*--app-version "\(.*\)".*/\1/')
echo "VERSION=$version" >> $GITHUB_ENV
echo "Installer version: $version"
- name: Build Windows Installer
run: |
cd installer
Expand All @@ -29,7 +36,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: windows-installer
path: installer/Nortantis-2.91.msi
path: installer/Nortantis-${{ env.VERSION }}.msi

- name: Submit Signing Request for Windows Installer
id: sign_windows
Expand All @@ -47,33 +54,8 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: signed-windows-installer
path: ./installer/signed/Nortantis-2.91.msi

build-linux:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'temurin'
path: ./installer/signed/Nortantis-${{ env.VERSION }}.msi

- name: Build Linux Installer
run: |
cd installer
bash create_ubuntu_installer.sh
- name: List installer directory contents
run: ls -la installer

- name: Upload Linux Installer
uses: actions/upload-artifact@v4
with:
name: linux-installer
path: installer/nortantis_2.91_amd64.deb


37 changes: 37 additions & 0 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build Ubuntu Installer

on:
push:
branches:
- release

build-linux:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'temurin'

- name: Extract Version from Linux Script
id: extract_version_linux
run: |
version=$(grep -- '--app-version' installer/create_ubuntu_installer.sh | sed 's/.*--app-version "\(.*\)".*/\1/')
echo "VERSION=$version" >> $GITHUB_ENV
echo "Installer version: $version"
- name: Build Linux Installer
run: |
cd installer
bash create_ubuntu_installer.sh
- name: Upload Linux Installer
uses: actions/upload-artifact@v4
with:
name: linux-installer
path: installer/nortantis_${{ env.VERSION }}_amd64.deb

0 comments on commit 98a7371

Please sign in to comment.