From 34594ac8369cad6ba27282ba0d748b82e7e51421 Mon Sep 17 00:00:00 2001 From: Pax1601 Date: Wed, 13 Dec 2023 16:02:53 +0100 Subject: [PATCH 1/4] Create msbuild.yml --- .github/workflows/msbuild.yml | 51 +++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/msbuild.yml diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml new file mode 100644 index 00000000..0ea5b56c --- /dev/null +++ b/.github/workflows/msbuild.yml @@ -0,0 +1,51 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: MSBuild + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + # Path to the solution file relative to the root of the project. + SOLUTION_FILE_PATH: ./src/olympus.sln + + # Configuration type to build. + # You can convert this to a build matrix if you need coverage of multiple configuration types. + # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + BUILD_CONFIGURATION: Release + +permissions: + contents: read + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Restore NuGet packages + working-directory: ${{env.GITHUB_WORKSPACE}} + run: nuget restore ${{env.SOLUTION_FILE_PATH}} + + - name: vcpkg-action + # You may pin to the exact commit or the version. + # uses: johnwason/vcpkg-action@3839b028ca2400865ef5e83a899f336b1b8fd711 + uses: johnwason/vcpkg-action@v5 + with: + pkgs: geographiclib cpprestsdk + + - name: Build + working-directory: ${{env.GITHUB_WORKSPACE}} + # Add additional options to the MSBuild command line here (like platform or verbosity level). + # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference + run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} From 3f072719310773d2271312ce8037142026982880 Mon Sep 17 00:00:00 2001 From: Pax1601 Date: Wed, 13 Dec 2023 16:07:54 +0100 Subject: [PATCH 2/4] Update msbuild.yml --- .github/workflows/msbuild.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 0ea5b56c..06942304 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -43,6 +43,7 @@ jobs: uses: johnwason/vcpkg-action@v5 with: pkgs: geographiclib cpprestsdk + token: ${{ github.token }} - name: Build working-directory: ${{env.GITHUB_WORKSPACE}} From 7bf232f1466f1b882b76d5b3935d94fe12c52c1d Mon Sep 17 00:00:00 2001 From: Pax1601 Date: Wed, 13 Dec 2023 16:10:21 +0100 Subject: [PATCH 3/4] Update msbuild.yml --- .github/workflows/msbuild.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 06942304..5c7ea319 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -33,16 +33,12 @@ jobs: - name: Add MSBuild to PATH uses: microsoft/setup-msbuild@v1.0.2 - - name: Restore NuGet packages - working-directory: ${{env.GITHUB_WORKSPACE}} - run: nuget restore ${{env.SOLUTION_FILE_PATH}} - - name: vcpkg-action # You may pin to the exact commit or the version. # uses: johnwason/vcpkg-action@3839b028ca2400865ef5e83a899f336b1b8fd711 uses: johnwason/vcpkg-action@v5 with: - pkgs: geographiclib cpprestsdk + pkgs: geographiclib:x64-windows cpprestsdk:x64-windows token: ${{ github.token }} - name: Build From 81ab1aa05dc95b98e9c45ddec2cfcbc1c3671aa5 Mon Sep 17 00:00:00 2001 From: Pax1601 Date: Wed, 13 Dec 2023 16:13:19 +0100 Subject: [PATCH 4/4] Update msbuild.yml --- .github/workflows/msbuild.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 5c7ea319..8d5372be 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -38,7 +38,8 @@ jobs: # uses: johnwason/vcpkg-action@3839b028ca2400865ef5e83a899f336b1b8fd711 uses: johnwason/vcpkg-action@v5 with: - pkgs: geographiclib:x64-windows cpprestsdk:x64-windows + pkgs: geographiclib cpprestsdk + triplet: x64-windows-release token: ${{ github.token }} - name: Build