-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (66 loc) · 2.04 KB
/
ci.yml
File metadata and controls
66 lines (66 loc) · 2.04 KB
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
# Generated from Workflow.pkl. DO NOT EDIT.
name: CI
'on': push
jobs:
build:
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 1
- uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3
with:
experimental: true
- name: dotnet restore cache
id: dotnet-cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.nuget/packages
key: nuget-${{hashFiles('**/packages.lock.json')}}
restore-keys: nuget-
- name: Verify pkl gen is up to date
run: mise run pkl:gen && git diff --exit-code .github/
- name: Format check
run: mise run format:check
- name: Build
run: mise run build
test:
needs: build
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 1
- uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3
with:
experimental: true
- name: dotnet restore cache
id: dotnet-cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.nuget/packages
key: nuget-${{hashFiles('**/packages.lock.json')}}
restore-keys: nuget-
- name: Test
run: mise run test
catch-AOT-specific-issues:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 1
- uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3
with:
experimental: true
- name: dotnet restore cache
id: dotnet-cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.nuget/packages
key: nuget-${{hashFiles('**/packages.lock.json')}}
restore-keys: nuget-
- name: Install AOT prerequisites
run: sudo apt-get install -y zlib1g-dev
- name: AOT Publish
run: mise run publish