Skip to content

Commit 51fe657

Browse files
committed
Add experimental feed to the workflow?
1 parent 479ba5d commit 51fe657

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

.github/workflows/dotnet.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,36 @@ permissions:
1111
actions: write
1212
jobs:
1313
Build:
14-
runs-on: macos-latest
14+
runs-on: macos-latest-xlarge
1515
steps:
1616
- uses: actions/checkout@v3
1717
- name: Setup .NET
1818
uses: actions/setup-dotnet@v3
1919
with:
20-
dotnet-version: '8.0.x'
20+
dotnet-version: '9.0.x'
2121
dotnet-quality: 'preview'
22-
- name: Restore
23-
run: dotnet restore
2422
- name: Pack
25-
run: dotnet pack -c Release
23+
# TODO decide whether we want experimental builds to use Debug or Release - using Release for now...
24+
run: >-
25+
dotnet run --project eng/build/Silk.NET.NUKE.csproj -c Release --
26+
Pack
27+
--configuration Release
28+
--msbuild-properties
29+
VersionSuffix=${{ github.event_name != 'pull_request' && format('build{0}.0', github.run_number) || format('pr{0}.{1}', github.event.number, github.run_number) }}
30+
ContinuousIntegrationBuild=true
31+
- name: Upload Unsigned Artifacts to Actions
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: unsigned_nupkgs
35+
path: "artifacts/**/*nupkg"
36+
if-no-files-found: warn
37+
retention-days: 1
38+
- name: Push to Experimental Feed
39+
if: ${{ github.repository == 'dotnet/Silk.NET' }}
40+
run: ./build.sh PushToNuGet --skip Clean Compile Pack --nuget-feed https://dotnet.github.io/Silk.NET/nuget/experimental/index.json --nuget-username ${{ secrets.EXP_NUGET_USERNAME }} --nuget-password ${{ secrets.EXP_NUGET_PASSWORD }} --nuget-api-key ${{ secrets.EXP_NUGET_PASSWORD }}
41+
- name: Push to GitHub Packages
42+
if: ${{ github.repository == 'dotnet/Silk.NET' }}
43+
run: ./build.sh PushToNuGet --skip Clean Compile Pack --nuget-feed https://nuget.pkg.github.com/dotnet/index.json --nuget-api-key ${{ secrets.GITHUB_TOKEN }}
2644
Test:
2745
strategy:
2846
fail-fast: false

0 commit comments

Comments
 (0)