Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build from CI using specific macos workload #2507

Merged
merged 1 commit into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
types: [ published ]

env:
DotNetVersion: "6.0.202"
DotNetVersion: "7.0.108"
BuildConfiguration: "Release"
BuildParameters: "build/Build.proj /v:Minimal /consoleLoggerParameters:NoSummary /p:Configuration=Release /p:BuildVersion=${{ github.run_id }} /p:BuildBranch=${{ github.ref }}"

Expand All @@ -24,7 +24,7 @@ jobs:
submodules: true

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DotNetVersion }}

Expand Down Expand Up @@ -71,12 +71,15 @@ jobs:
submodules: true

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DotNetVersion }}

- name: Create global.json for the version we are using
run: del global.json || echo '{"sdk":{"version":"${{ env.DotNetVersion }}"}}' > global.json

- name: Install macos workload
run: sudo dotnet workload install macos
run: sudo dotnet workload install macos --from-rollback-file dotnet-workloads.json

- name: Setup Xamarin and XCode
uses: maxim-lobanov/setup-xamarin@v1
Expand Down
12 changes: 11 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,17 @@
"presentation": {
"clear": true
}
}
},
{
"label": "install-macos-workload",
"type": "shell",
"command": "sudo dotnet workload install macos --from-rollback-file dotnet-workloads.json",
"problemMatcher": "$msCompile",
"presentation": {
"clear": true,
"focus": true
}
}
],
"inputs": [
{
Expand Down
3 changes: 3 additions & 0 deletions dotnet-workloads.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"microsoft.net.sdk.macos": "12.3.2372"
}