Skip to content

Commit 6d54a0d

Browse files
authored
ci: Fix build error (#73)
1 parent 0bb6ab9 commit 6d54a0d

File tree

5 files changed

+26
-1
lines changed

5 files changed

+26
-1
lines changed

.github/actions/ci/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ runs:
2222
- name: Setup dotnet build tools
2323
uses: actions/setup-dotnet@v4
2424
with:
25-
dotnet-version: |
25+
dotnet-version: |
2626
6.0
2727
7.0
2828
29+
- name: Copy global.json in place
30+
shell: bash
31+
run: cp global.example.json global.json
32+
2933
- name: Restore Workloads
3034
shell: bash
3135
run: dotnet workload restore ${{ inputs.project_file }}
@@ -44,3 +48,7 @@ runs:
4448
run: |
4549
dotnet restore ${{ inputs.test_project_file }}
4650
dotnet test -v=${{ inputs.test_verbosity }} --framework=${{ inputs.target_test_framework }} ${{ inputs.test_project_file }}
51+
52+
- name: Remove global.json
53+
shell: bash
54+
run: rm global.json

.github/actions/contract-tests/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ runs:
2020
with:
2121
dotnet-version: 6.0
2222

23+
- name: Restore Workloads
24+
shell: bash
25+
run: dotnet workload restore ${{ inputs.service_project_file }}
26+
27+
- name: Restore Dependencies
28+
shell: bash
29+
run: dotnet restore ${{ inputs.service_project_file }}
30+
2331
- name: Build Contract Tests
2432
shell: bash
2533
run: dotnet build -p:Configuration=debug ${{ inputs.service_project_file }}

global.example.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sdk": {
3+
"version": "7.0.410",
4+
"rollForward": "latestFeature"
5+
}
6+
}

pkgs/sdk/client/src/LaunchDarkly.ClientSdk.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
3434
<RootNamespace>LaunchDarkly.Sdk.Client</RootNamespace>
3535
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
36+
<CheckEolWorkloads>false</CheckEolWorkloads>
3637

3738
<!-- fail if XML comments are missing or invalid -->
3839
<WarningsAsErrors>1570,1571,1572,1573,1574,1580,1581,1584,1591,1710,1711,1712</WarningsAsErrors>

pkgs/sdk/server-ai/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ test:
66

77
clean:
88
dotnet clean
9+
10+
.PHONY: build test clean

0 commit comments

Comments
 (0)