Skip to content

Build installer

Build installer #4

name: Build installer
on: [workflow_dispatch]
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Ant
run: ant -noinput -buildfile build.xml windows-installer
- name: Upload Windows Installer
uses: actions/upload-artifact@v4
with:
name: elamx-windows
path: "dist/*.exe"
retention-days: 1
- name: Upload Windows Zip
uses: actions/upload-artifact@v4
with:
name: elamx-windows-zip
path: "dist/*.zip"
retention-days: 1
- name: Update Latest Nightly Release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifactErrorsFailBuild: false
artifacts: dist\elamx2_windows.zip,dist\eLamX 2.7.exe
artifactContentType: "raw"
name: Latest Nightly ${{ env.NIGHTLYDATE }}
prerelease: true
replacesArtifacts: true
tag: nightly
token: ${{ secrets.GITHUB_TOKEN }}
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install xmllint
run: sudo apt-get install -y libfuse2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Ant
run: ant -noinput -buildfile build.xml linux-appimage
- name: Upload Linux AppIamge
uses: actions/upload-artifact@v4
with:
name: elamx-linux-appimage
path: "dist/eLamX2-x86_64.AppImage"
retention-days: 1
- name: Upload Linux Zip
uses: actions/upload-artifact@v4
with:
name: elamx-linux-zip
path: "dist/*.zip"
retention-days: 1
- name: Update Latest Nightly Release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifactErrorsFailBuild: false
artifacts: dist\elamx2_linux.zip,dist\eLamX2-x86_64.AppImage
artifactContentType: "raw"
name: Latest Nightly ${{ env.NIGHTLYDATE }}
prerelease: true
replacesArtifacts: true
tag: nightly
token: ${{ secrets.GITHUB_TOKEN }}
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Ant
run: ant -noinput -buildfile build.xml macos-zip
- name: Upload Linux Zip
uses: actions/upload-artifact@v4
with:
name: elamx-macos-zip
path: "dist/*.zip"
retention-days: 1
- name: Update Latest Nightly Release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifactErrorsFailBuild: false
artifacts: dist\elamx2_macos.zip
artifactContentType: "raw"
name: Latest Nightly ${{ env.NIGHTLYDATE }}
prerelease: true
replacesArtifacts: true
tag: nightly
token: ${{ secrets.GITHUB_TOKEN }}