Skip to content
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
79 changes: 38 additions & 41 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
workflow_dispatch:

env:
DOTNET_VERSION: ${{ '9.0.x' }}
ENABLE_DIAGNOSTICS: false
#COREHOST_TRACE: 1
COREHOST_TRACEFILE: corehosttrace.log
Expand All @@ -29,15 +28,15 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Install .NET SDK v${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install .NET SDK
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json

# Restore Tools from Manifest list in the Repository
- name: Restore dotnet tools
run: dotnet tool restore
Expand All @@ -49,19 +48,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Install .NET SDK v${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: .NET Info (if diagnostics)
if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }}
run: dotnet --info

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install .NET SDK
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json

- name: dotnet build
working-directory: ./
run: dotnet build /bl CommunityToolkit.Tooling.sln -p:Configuration=Release
Expand Down Expand Up @@ -102,15 +97,6 @@ jobs:
maximum-size: 32GB
disk-root: "C:"

- name: Install .NET SDK v${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: .NET Info (if diagnostics)
if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }}
run: dotnet --info

- name: Enable git long paths
run: git config --system core.longpaths true

Expand All @@ -120,6 +106,15 @@ jobs:
with:
path: 'tooling'

- name: Install .NET SDK
uses: actions/setup-dotnet@v4
with:
global-json-file: tooling/global.json

- name: .NET Info (if diagnostics)
if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }}
run: dotnet --info

- name: Copy props files to root
shell: pwsh
working-directory: ./
Expand Down Expand Up @@ -167,15 +162,6 @@ jobs:
minimum-size: 32GB
maximum-size: 32GB
disk-root: "C:"

- name: Install .NET SDK v${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: .NET Info (if diagnostics)
if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }}
run: dotnet --info

- name: Enable git long paths
run: git config --system core.longpaths true
Expand All @@ -186,6 +172,15 @@ jobs:
with:
path: 'tooling'

- name: Install .NET SDK
uses: actions/setup-dotnet@v4
with:
global-json-file: tooling/global.json

- name: .NET Info (if diagnostics)
if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }}
run: dotnet --info

- name: Copy props and config files to root and setup structure
shell: pwsh
working-directory: ./
Expand Down Expand Up @@ -253,21 +248,21 @@ jobs:
TEST_PROJECT_NAME: CiTestExp

steps:
- name: Install .NET SDK v${{ env.DOTNET_VERSION }}
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Repository
uses: actions/checkout@v4
with:
path: 'tooling'

- name: Install .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
global-json-file: tooling/global.json

- name: .NET Info (if diagnostics)
if: ${{ env.ENABLE_DIAGNOSTICS == 'true' }}
run: dotnet --info

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Repository
uses: actions/checkout@v4
with:
path: 'tooling'

- name: Copy props and config files to root and setup structure
shell: pwsh
working-directory: ./
Expand Down Expand Up @@ -309,3 +304,5 @@ jobs:
with:
name: linux-logs
path: ./**/*.*log


4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk": {
"version": "9.0.308",
"rollForward": "disable"
"version": "9.0.310",
"rollForward": "latestFeature"
},
"msbuild-sdks":
{
Expand Down
Loading