forked from ericsink/SQLitePCL.raw
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (56 loc) · 1.54 KB
/
build.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: build
on: workflow_dispatch
jobs:
build:
strategy:
matrix:
# TODO want macos-latest here too, but the build currently fails there
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
path: "SQLitePCL.raw"
- uses: actions/checkout@v2
with:
repository: ericsink/cb
path: "cb"
- name: "Set up Java: 11"
uses: actions/setup-java@v1
with:
java-version: 11
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
- name: Install workload ios
run: dotnet workload install ios
- name: Install workload maccatalyst
run: dotnet workload install maccatalyst
- name: Install workload android
run: dotnet workload install android
- name: Install workload tvos
run: dotnet workload install tvos
- name: Setup .NET 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Install T4
run: dotnet tool install --global dotnet-t4
- name: Build
run: |
cd SQLitePCL.raw/build
dotnet run
- uses: stefanzweifel/git-auto-commit-action@v4
with:
repository: SQLitePCL.raw
commit_message: "cd build && dotnet run"
skip_dirty_check: true
skip_fetch: true
skip_checkout: true
- uses: actions/upload-artifact@v3
with:
name: nupkgs
path: SQLitePCL.raw/nupkgs/*.nupkg