Skip to content

Commit

Permalink
Update msi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alfeilex authored Feb 19, 2025
1 parent a3f2f94 commit a23ac0f
Showing 1 changed file with 38 additions and 7 deletions.
45 changes: 38 additions & 7 deletions .github/workflows/msi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,45 @@ name: MSI Builder
on: push

jobs:
init_wixtoolset:
runs-on: windows-latest
build-natives:
name: Build native images
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest, macos-13 ]
steps:
- name: Install Wix CLI
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: graalvm/setup-graalvm@v1
with:
java-version: '21.0.2'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Build native image
shell: bash
run: |
maven_config="$(cat .mvn/maven.config)"
current_version="${maven_config/#*-Drevision=}"
current_version="${current_version/ */}"
next_version="${current_version/-SNAPSHOT/}"
cd cli
mvn -B -ntp -Drevision=${next_version} -Pnative -DskipTests=true package
if: matrix.os == 'windows-latest'
- name: Build MSI for Windows
run: |
dotnet tool install --global wix --version 5.0.2
- uses: actions/checkout@v4
cd build-msi
wix extension add WixToolset.UI.wixext
wix extension add WixToolset.Util.wixext
wix build Package.wxs WixUI_OwnSetup.wxs -loc Package.en-us.wxl -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext -o ideasy.msi
dir
cd ..
dir cli/target
- name: Upload native image
uses: actions/upload-artifact@v4
with:
submodules: recursive
- name: check
run: dir
name: natives-${{ matrix.os }}
path: cli/target/ideasy*

0 comments on commit a23ac0f

Please sign in to comment.