forked from dotnet/Silk.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (82 loc) · 3.23 KB
/
public-api.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Public API
on:
push:
branches:
- "*"
create:
tags:
- "*"
pull_request_target:
permissions:
issues: write
pull-requests: write
jobs:
Check:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
name: Checkout PR
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name == 'pull_request_target' }}
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
path: inbound_pr
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/checkout@v2
name: Checkout branch
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request_target' }}
with:
path: inbound_pr
- name: Checkout submodules, configure git
run: |
cd inbound_pr
git -c submodule.third_party/git-hooks.update=none submodule update --init --recursive
- name: Cache .tmp, ~/.nuget/packages
uses: actions/cache@v2
with:
path: |
.tmp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- name: Setup .NET 6.0 and .NET 7.0
uses: actions/[email protected]
with:
dotnet-version: |
6.0.201
7.0.*
- name: Install Workloads for Restore
# TODO: This is slow. Maybe we can make a docker container with this already done?
run: dotnet workload install android ios maccatalyst maui
- name: Ensure Public API Declared
run: ./build.sh EnsureApiDeclared
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Ship:
if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name == 'create' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}
- name: Checkout submodules, configure git
run: |
git -c submodule.third_party/git-hooks.update=none submodule update --init --recursive
git config --local user.email "[email protected]"
git config --local user.name "The Silk.NET Automaton"
- name: Cache .tmp, ~/.nuget/packages
uses: actions/cache@v2
with:
path: |
.tmp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- name: Setup .NET 6.0 and .NET 7.0
uses: actions/[email protected]
with:
dotnet-version: |
6.0.201
7.0.*
- name: Ship Public API
run: ./build.sh ShipApi
env:
PUSHABLE_GITHUB_TOKEN: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}