forked from dotnet/Silk.NET
61 lines (57 loc) · 1.93 KB
/
bindings-regeneration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Bindings Regeneration
on:
schedule:
- cron: '0 0 * * Fri'
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.302
- name: Setup Java JDK 11
uses: actions/setup-java@v2.3.0
with:
java-version: 11
distribution: "temurin"
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.201
- 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: Install Workloads
# TODO: This is slow. Maybe we can make a docker container with this already done?
run: dotnet workload install android ios maccatalyst maui
- uses: GuillaumeFalourd/setup-windows10-sdk-action@v1.9
name: Setup Windows 11 SDK
with:
sdk-version: 22621
- name: Run a full run of BuildTools
run: dotnet run -c Release --project src/Core/Silk.NET.BuildTools/Silk.NET.BuildTools.csproj -- --no-parallel
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%d-%m-%Y')"
- name: Create or Update Pull Request
uses: gr2m/create-or-update-pull-request-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: Binding and specification updates
body: Regenerates the bindings and the cached specifications with the latest upstream specifications.
branch: patch/spec-updates
author: "Team Silk.NET <9011267+dotnet-bot@users.noreply.github.com>"
commit-message: Latest bindings as of ${{ steps.date.outputs.date }}