Skip to content

Commit 956c5f2

Browse files
authored
Thin down CI (#908)
1 parent a7cd1cd commit 956c5f2

File tree

8 files changed

+85
-281
lines changed

8 files changed

+85
-281
lines changed

.github/workflows/bindings-regeneration.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 30 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,33 @@
11
name: CI Build
22
on:
3-
push:
4-
branches:
5-
- 'main'
6-
- 'release/*'
7-
pull_request:
8-
# none
3+
push:
4+
branches:
5+
- "main"
6+
- "release/*"
7+
pull_request:
8+
# none
99
jobs:
10-
Build:
11-
runs-on: windows-latest
12-
steps:
13-
- uses: actions/checkout@v2
14-
with:
15-
submodules: 'true'
16-
- name: Setup .NET 5.0
17-
uses: actions/setup-dotnet@v1
18-
with:
19-
dotnet-version: 5.0.201
20-
- name: Setup .NET Core 3.1
21-
uses: actions/setup-dotnet@v1
22-
with:
23-
dotnet-version: 3.1.404
24-
- name: Setup NUKE
25-
run: dotnet tool install Nuke.GlobalTool --global
26-
- name: Test
27-
# skip Clean, Restore, and Compile as this will build the affect the whole solution.
28-
# dotnet test will compile the necessary projects for testing only.
29-
run: nuke Test --skip Clean Restore Compile
30-
- name: Validation Checks
31-
run: nuke ValidateSolution
32-
- name: Pack
33-
# TODO build native mixins such as BuildLibSilkDroid
34-
run: nuke Pack --configuration Release --msbuild-properties VersionSuffix=build${{ github.run_number }}.0 ContinuousIntegrationBuild=true --feature-sets Android iOS
35-
- name: Push to NuGet
36-
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }}
37-
run: nuke PushToNuGet --skip Clean Restore Compile Pack --nuget-feed https://pkgs.dev.azure.com/UltzOS/Silk.NET/_packaging/Experimental/nuget/v3/index.json --nuget-username ${{ secrets.AZDO_ARTIFACTS_USERNAME }} --nuget-password ${{ secrets.AZDO_ARTIFACTS_TOKEN }} --nuget-api-key az
38-
- name: Push to GitHub Packages
39-
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }}
40-
run: nuke PushToNuGet --skip Clean Restore Compile Pack --nuget-feed https://nuget.pkg.github.com/dotnet/index.json --nuget-api-key ${{ secrets.GITHUB_TOKEN }}
10+
Build:
11+
runs-on: windows-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
submodules: "true"
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v2
18+
- name: Setup NUKE
19+
run: dotnet tool install Nuke.GlobalTool --global
20+
- name: Test
21+
# skip Clean, Restore, and Compile as this will build the affect the whole solution.
22+
# dotnet test will compile the necessary projects for testing only.
23+
run: nuke Test --skip Clean Restore Compile
24+
- name: Validation Checks
25+
run: nuke ValidateSolution
26+
- name: Pack
27+
run: nuke Pack --configuration Release --msbuild-properties VersionSuffix=build${{ github.run_number }}.0 ContinuousIntegrationBuild=true --feature-sets Android iOS
28+
- name: Push to NuGet
29+
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }}
30+
run: nuke PushToNuGet --skip Clean Restore Compile Pack --nuget-feed https://pkgs.dev.azure.com/UltzOS/Silk.NET/_packaging/Experimental/nuget/v3/index.json --nuget-username ${{ secrets.AZDO_ARTIFACTS_USERNAME }} --nuget-password ${{ secrets.AZDO_ARTIFACTS_TOKEN }} --nuget-api-key az
31+
- name: Push to GitHub Packages
32+
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }}
33+
run: nuke PushToNuGet --skip Clean Restore Compile Pack --nuget-feed https://nuget.pkg.github.com/dotnet/index.json --nuget-api-key ${{ secrets.GITHUB_TOKEN }}

.github/workflows/codeowners.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
name: Codeowners
22
on:
3-
push:
4-
paths:
5-
- "CODEOWNERS"
6-
pull_request:
7-
paths:
8-
- "CODEOWNERS"
3+
push:
4+
paths:
5+
- "CODEOWNERS"
6+
pull_request:
7+
paths:
8+
- "CODEOWNERS"
99
jobs:
10-
Validate:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v2
14-
- uses: mszostok/[email protected]
15-
with:
16-
checks: "files,duppatterns"
17-
experimental_checks: "notowned"
10+
Validate:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: mszostok/[email protected]
15+
with:
16+
checks: "files,duppatterns"
17+
experimental_checks: "notowned"

.github/workflows/deploy.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
name: CD Build
22

33
on:
4-
push:
5-
tags:
6-
- '*'
4+
push:
5+
tags:
6+
- "*"
77

88
jobs:
9-
Publish:
10-
runs-on: windows-latest
11-
steps:
12-
- uses: actions/checkout@v2
13-
with:
14-
submodules: 'true'
15-
- name: Setup .NET Core
16-
uses: actions/setup-dotnet@v1
17-
with:
18-
dotnet-version: 5.0.201
19-
- name: Setup NUKE
20-
run: dotnet tool install Nuke.GlobalTool --global
21-
- name: Push to NuGet
22-
run: nuke PushToNuGet --configuration Release --msbuild-properties ContinuousIntegrationBuild=true SilkEnableSourceLink=true --feature-sets Android iOS --nuget-api-key ${{ secrets.NUGET_TOKEN }}
9+
Publish:
10+
runs-on: windows-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
submodules: "true"
15+
- name: Setup .NET
16+
uses: actions/setup-dotnet@v2
17+
- name: Setup NUKE
18+
run: dotnet tool install Nuke.GlobalTool --global
19+
- name: Push to NuGet
20+
run: nuke PushToNuGet --configuration Release --msbuild-properties ContinuousIntegrationBuild=true SilkEnableSourceLink=true --feature-sets Android iOS --nuget-api-key ${{ secrets.NUGET_TOKEN }}

.github/workflows/glfw.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/public-api.yml

Lines changed: 0 additions & 78 deletions
This file was deleted.

.github/workflows/publish-site.yml

Lines changed: 26 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,29 @@
11
name: Website Build
22
on:
3-
push:
4-
branches:
5-
- 'main'
3+
push:
4+
branches:
5+
- "main"
66
jobs:
7-
Build:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v2
11-
with:
12-
submodules: 'true'
13-
token: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}
14-
- name: Setup .NET 5.0
15-
uses: actions/setup-dotnet@v1
16-
with:
17-
dotnet-version: 5.0.401
18-
- name: Setup .NET 6.0
19-
uses: actions/setup-dotnet@v1
20-
with:
21-
dotnet-version: 6.0.100
22-
- name: Checkout Website Branch
23-
run: |
24-
git fetch --all
25-
git checkout ci/github-pages
26-
git config --local user.email "[email protected]"
27-
git config --local user.name "The Silk.NET Automaton"
28-
git merge --allow-unrelated-histories -X theirs main
29-
- name: Run Statiq
30-
run: dotnet run -c Release --project src/Website/Silk.NET.Statiq/Silk.NET.Statiq.csproj -- -l debug --nocache
31-
- name: Push to Website Branch
32-
run: |
33-
git add -f docs/
34-
git commit -am "Push latest built GitHub Pages site"
35-
git push
7+
Build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
submodules: "true"
13+
token: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}
14+
- name: Setup .NET
15+
uses: actions/setup-dotnet@v2
16+
- name: Checkout Website Branch
17+
run: |
18+
git fetch --all
19+
git checkout ci/github-pages
20+
git config --local user.email "[email protected]"
21+
git config --local user.name "The Silk.NET Automaton"
22+
git merge --allow-unrelated-histories -X theirs main
23+
- name: Run Statiq
24+
run: dotnet run -c Release --project src/Website/Silk.NET.Statiq/Silk.NET.Statiq.csproj -- -l debug --nocache
25+
- name: Push to Website Branch
26+
run: |
27+
git add -f docs/
28+
git commit -am "Push latest built GitHub Pages site"
29+
git push

.github/workflows/rewrite-infrastructure.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)