From 79ca4d67fd6ef39d452dde913ce09a6df0b01713 Mon Sep 17 00:00:00 2001 From: Brad Wilson Date: Wed, 15 Nov 2023 13:58:21 -0800 Subject: [PATCH] Go back to Linux-based CI builds --- .github/workflows/push-main.yaml | 58 +++++++++++++++++++++++++++----- 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/.github/workflows/push-main.yaml b/.github/workflows/push-main.yaml index e33f9726..50cbcf73 100644 --- a/.github/workflows/push-main.yaml +++ b/.github/workflows/push-main.yaml @@ -9,7 +9,7 @@ on: jobs: build: name: "Build" - runs-on: windows-latest + runs-on: ubuntu-22.04 env: DOTNET_NOLOGO: true steps: @@ -32,9 +32,58 @@ jobs: - name: Get .NET information run: dotnet --info + - name: Get Mono information + run: mono --version + - name: "Build target: BuildAll" run: dotnet run --project tools/builder --no-launch-profile -- BuildAll --timing + - name: "Upload artifact: test" + uses: actions/upload-artifact@v3 + with: + name: test + path: artifacts/test + if: always() + + - name: "Upload artifact: packages" + uses: actions/upload-artifact@v3 + with: + name: packages + path: artifacts/packages + if: always() + + publish: + name: "Sign and Publish" + runs-on: windows-latest + needs: build + env: + DOTNET_NOLOGO: true + steps: + - name: Clone source + uses: actions/checkout@v3 + with: + fetch-depth: 0 + submodules: true + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1 + + - name: Install .NET SDK + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + + - name: Get .NET information + run: dotnet --info + + - name: "Download artifact: packages" + uses: actions/download-artifact@v3 + with: + name: packages + path: artifacts/packages + - name: "Build target: PublishPackages" env: PUSH_APIKEY: ${{ secrets.PUSH_APIKEY }} @@ -48,13 +97,6 @@ jobs: SIGN_VAULT_URI: ${{ secrets.SIGN_VAULT_URI }} run: dotnet run --project tools/builder --no-launch-profile -- PublishPackages --timing - - name: "Upload artifact: test" - uses: actions/upload-artifact@v3 - with: - name: test - path: artifacts/test - if: always() - - name: "Upload artifact: packages" uses: actions/upload-artifact@v3 with: