Skip to content

Commit

Permalink
Go back to Linux-based CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Nov 15, 2023
1 parent 06d308b commit 79ca4d6
Showing 1 changed file with 50 additions and 8 deletions.
58 changes: 50 additions & 8 deletions .github/workflows/push-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build:
name: "Build"
runs-on: windows-latest
runs-on: ubuntu-22.04
env:
DOTNET_NOLOGO: true
steps:
Expand All @@ -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 }}
Expand All @@ -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:
Expand Down

0 comments on commit 79ca4d6

Please sign in to comment.