-
Notifications
You must be signed in to change notification settings - Fork 592
59 lines (52 loc) · 1.79 KB
/
build-msi-package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: "Build MSI Package"
on:
workflow_call:
inputs:
ice_version:
required: false
type: string
source_url:
required: false
type: string
workflow_dispatch:
inputs:
ice_version:
description: "The Ice version to use"
required: false
source_url:
description: "The URL of the NuGet repository to download from"
required: false
type: string
jobs:
build-msi-package:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: ice
- name: Setup Dependencies
uses: ./ice/.github/actions/setup-dependencies
- name: Download C++ Binaries From NuGet feed
run: |
New-Item -ItemType Directory -Path "${{ github.workspace }}\packages"
nuget install zeroc.ice.v143 -Version ${{ inputs.ice_version }} -OutputDirectory "${{ github.workspace }}\packages" -Prerelease
- name: Build IceGrid GUI
run: |
MSBuild ..\cpp\msbuild\ice.sln /t:slice2java /p:Configuration=Release /p:Platform=x64
./gradlew.bat dist -PcppPlatform=x64 -PcppConfiguration=Release
working-directory: ice/java
- name: Build MSI
run: dotnet build -c Release -p:Platform=x64
working-directory: ice/packaging/msi
env:
PackageDir: "${{ github.workspace }}\\packages\\zeroc.ice.v143"
StagingDir: "${{ github.workspace }}\\staging"
# TODO compute this variable see issue #3558
VCInstallDir: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC"
- name: Upload MSI
uses: actions/upload-artifact@v4
with:
name: windows-msi
path: |
ice/packaging/msi/bin/x64/Release/*.msi