-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (87 loc) · 2.74 KB
/
ci.yml
File metadata and controls
87 lines (87 loc) · 2.74 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Generated from Workflow.pkl. DO NOT EDIT.
name: CI
'on': {}
jobs:
build:
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 1
- uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3
with:
experimental: true
- name: mise cache
id: mise-cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.mise/install/cache
key: mise-${{hashFiles('.mise.lock')}}
restore-keys: mise-
- 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@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3
with:
experimental: true
- name: mise cache
id: mise-cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.mise/install/cache
key: mise-${{hashFiles('.mise.lock')}}
restore-keys: mise-
- 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@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3
with:
experimental: true
- name: mise cache
id: mise-cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.mise/install/cache
key: mise-${{hashFiles('.mise.lock')}}
restore-keys: mise-
- 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