-
Notifications
You must be signed in to change notification settings - Fork 593
68 lines (55 loc) · 1.7 KB
/
build-dotnet-packages.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
60
61
62
63
64
65
66
67
68
name: "Build .NET Packages"
on:
workflow_call:
workflow_dispatch:
jobs:
build-slice-compilers:
strategy:
matrix:
include:
- os: macos-latest
artifact-path: cpp/bin/slice2cs
- os: windows-latest
artifact-path: cpp/bin/Release/x64/slice2cs.*
- os: ubuntu-24.04
artifact-path: cpp/bin/slice2cs
- os: ubuntu-24.04-arm64
artifact-path: cpp/bin/slice2cs
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Dependencies
uses: ./.github/actions/setup-dependencies
- name: Build Compiler
uses: ./.github/actions/build-slice-compiler
with:
compiler-name: slice2cs
- name: Upload Compiler Artifact
uses: actions/upload-artifact@v4
with:
name: slice2cs-${{ matrix.os }}
path: ${{ matrix.artifact-path }}
pack-dotnet:
runs-on: windows-latest
needs: build-slice-compilers
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create Tools Directory
run: mkdir tools
shell: cmd
- name: Download All Compiler Artifacts
uses: actions/download-artifact@v4
with:
path: tools
- name: Set SLICE2CS_STAGING_PATH
run: echo "SLICE2CS_STAGING_PATH=$PWD/tools" >> $GITHUB_ENV
shell: bash
- name: Pack .NET Packages
run: dotnet msbuild csharp/msbuild/ice.proj /t:Pack
- name: Upload NuGet Packages
uses: actions/upload-artifact@v4
with:
name: dotnet-nuget-packages
path: csharp/msbuild/zeroc.ice.net/*.nupkg