Skip to content

Thin down CI #908

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

Merged
merged 1 commit into from
May 7, 2022
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
34 changes: 0 additions & 34 deletions .github/workflows/bindings-regeneration.yml

This file was deleted.

67 changes: 30 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,33 @@
name: CI Build
on:
push:
branches:
- 'main'
- 'release/*'
pull_request:
# none
push:
branches:
- "main"
- "release/*"
pull_request:
# none
jobs:
Build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup .NET 5.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.201
- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.404
- name: Setup NUKE
run: dotnet tool install Nuke.GlobalTool --global
- name: Test
# skip Clean, Restore, and Compile as this will build the affect the whole solution.
# dotnet test will compile the necessary projects for testing only.
run: nuke Test --skip Clean Restore Compile
- name: Validation Checks
run: nuke ValidateSolution
- name: Pack
# TODO build native mixins such as BuildLibSilkDroid
run: nuke Pack --configuration Release --msbuild-properties VersionSuffix=build${{ github.run_number }}.0 ContinuousIntegrationBuild=true --feature-sets Android iOS
- name: Push to NuGet
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }}
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
- name: Push to GitHub Packages
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }}
run: nuke PushToNuGet --skip Clean Restore Compile Pack --nuget-feed https://nuget.pkg.github.com/dotnet/index.json --nuget-api-key ${{ secrets.GITHUB_TOKEN }}
Build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "true"
- name: Setup .NET
uses: actions/setup-dotnet@v2
- name: Setup NUKE
run: dotnet tool install Nuke.GlobalTool --global
- name: Test
# skip Clean, Restore, and Compile as this will build the affect the whole solution.
# dotnet test will compile the necessary projects for testing only.
run: nuke Test --skip Clean Restore Compile
- name: Validation Checks
run: nuke ValidateSolution
- name: Pack
run: nuke Pack --configuration Release --msbuild-properties VersionSuffix=build${{ github.run_number }}.0 ContinuousIntegrationBuild=true --feature-sets Android iOS
- name: Push to NuGet
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }}
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
- name: Push to GitHub Packages
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }}
run: nuke PushToNuGet --skip Clean Restore Compile Pack --nuget-feed https://nuget.pkg.github.com/dotnet/index.json --nuget-api-key ${{ secrets.GITHUB_TOKEN }}
28 changes: 14 additions & 14 deletions .github/workflows/codeowners.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Codeowners
on:
push:
paths:
- "CODEOWNERS"
pull_request:
paths:
- "CODEOWNERS"
push:
paths:
- "CODEOWNERS"
pull_request:
paths:
- "CODEOWNERS"
jobs:
Validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: mszostok/codeowners-validator@v0.6.0
with:
checks: "files,duppatterns"
experimental_checks: "notowned"
Validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mszostok/codeowners-validator@v0.6.0
with:
checks: "files,duppatterns"
experimental_checks: "notowned"
32 changes: 15 additions & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
name: CD Build

on:
push:
tags:
- '*'
push:
tags:
- "*"

jobs:
Publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.201
- name: Setup NUKE
run: dotnet tool install Nuke.GlobalTool --global
- name: Push to NuGet
run: nuke PushToNuGet --configuration Release --msbuild-properties ContinuousIntegrationBuild=true SilkEnableSourceLink=true --feature-sets Android iOS --nuget-api-key ${{ secrets.NUGET_TOKEN }}
Publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "true"
- name: Setup .NET
uses: actions/setup-dotnet@v2
- name: Setup NUKE
run: dotnet tool install Nuke.GlobalTool --global
- name: Push to NuGet
run: nuke PushToNuGet --configuration Release --msbuild-properties ContinuousIntegrationBuild=true SilkEnableSourceLink=true --feature-sets Android iOS --nuget-api-key ${{ secrets.NUGET_TOKEN }}
45 changes: 0 additions & 45 deletions .github/workflows/glfw.yml

This file was deleted.

78 changes: 0 additions & 78 deletions .github/workflows/public-api.yml

This file was deleted.

58 changes: 26 additions & 32 deletions .github/workflows/publish-site.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,29 @@
name: Website Build
on:
push:
branches:
- 'main'
push:
branches:
- "main"
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
token: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}
- name: Setup .NET 5.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.401
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
- name: Checkout Website Branch
run: |
git fetch --all
git checkout ci/github-pages
git config --local user.email "9011267+dotnet-bot@users.noreply.github.com"
git config --local user.name "The Silk.NET Automaton"
git merge --allow-unrelated-histories -X theirs main
- name: Run Statiq
run: dotnet run -c Release --project src/Website/Silk.NET.Statiq/Silk.NET.Statiq.csproj -- -l debug --nocache
- name: Push to Website Branch
run: |
git add -f docs/
git commit -am "Push latest built GitHub Pages site"
git push
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "true"
token: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}
- name: Setup .NET
uses: actions/setup-dotnet@v2
- name: Checkout Website Branch
run: |
git fetch --all
git checkout ci/github-pages
git config --local user.email "9011267+dotnet-bot@users.noreply.github.com"
git config --local user.name "The Silk.NET Automaton"
git merge --allow-unrelated-histories -X theirs main
- name: Run Statiq
run: dotnet run -c Release --project src/Website/Silk.NET.Statiq/Silk.NET.Statiq.csproj -- -l debug --nocache
- name: Push to Website Branch
run: |
git add -f docs/
git commit -am "Push latest built GitHub Pages site"
git push
24 changes: 0 additions & 24 deletions .github/workflows/rewrite-infrastructure.yml

This file was deleted.