From b18b525d582977ae23525c8ad7b61f99b44e2b45 Mon Sep 17 00:00:00 2001 From: Joe George Date: Fri, 31 May 2024 10:32:31 -0400 Subject: [PATCH] Add c# ci builds (#212) --- .github/workflows/ci.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e86b47de..796133fcd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,16 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-22.04, macos-14, windows-2022] + include: + - os: ubuntu-22.04 + ice_build_flags: srcs + csharp_build_command: dotnet build + - os: macos-14 + ice_build_flags: srcs + csharp_build_command: dotnet build + - os: windows-2022 + ice_build_flags: /t:BuildDist + csharp_build_command: MSBuild runs-on: ${{ matrix.os }} steps: @@ -44,6 +53,7 @@ jobs: timeout-minutes: 90 with: working_directory: ice + build_flags: ${{ matrix.ice_build_flags || '' }} - name: Checkout repository uses: actions/checkout@v4 @@ -56,3 +66,8 @@ jobs: with: working_directory: ice-demos/cpp msbuild_project: msbuild/ice.proj + + - name: Build C# Demos on ${{ matrix.os }} + timeout-minutes: 30 + working-directory: ice-demos/csharp + run: ${{ matrix.csharp_build_command }} /m msbuild/ice.proj