-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow for building .NET NuGet packages (#3468)
- Loading branch information
Showing
6 changed files
with
91 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "Build Slice Compiler" | ||
description: "Builds a Slice compiler from C++ source for multiple platforms" | ||
|
||
inputs: | ||
compiler-name: | ||
description: "Name of the compiler to build" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Build on Windows | ||
if: runner.os == 'Windows' | ||
run: | | ||
MSBuild msbuild/ice.proj /p:Configuration=Release /p:Platform=x64 /t:${{ inputs.compiler-name }} | ||
shell: cmd | ||
|
||
- name: Build on Linux/macOS | ||
if: runner.os != 'Windows' | ||
run: | | ||
make OPTIMIZE=yes V=1 ${{ inputs.compiler-name }} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: "Build .NET Packages" | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-slice-compilers: | ||
strategy: | ||
matrix: | ||
include: | ||
- os: macos-latest | ||
artifact-path: bin/slice2cs* | ||
- os: windows-latest | ||
artifact-path: bin/Release/x64/slice2cs* | ||
- os: ubuntu-24.04 | ||
artifact-path: bin/slice2cs* | ||
- os: ubuntu-24.04-arm64 | ||
artifact-path: 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,3 @@ zeroc-icebox/* | |
zeroc-icegrid/* | ||
zeroc-icegridgui/* | ||
zeroc-icepatch2/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,6 @@ repository. | |
|
||
## Building the Ice packages | ||
|
||
|
||
$ cd ice-debian-packaging | ||
$ gbp buildpackage | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters