forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (49 loc) · 1.46 KB
/
jit-format.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
name: Format jit codebase
on:
pull_request:
paths:
- '.github/workflows/jit-format.yml'
- 'src/coreclr/jit/**'
branches: [ main ]
jobs:
format:
strategy:
fail-fast: false
matrix:
os:
- name: linux
image: ubuntu-latest
container: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10.0-cross-amd64
extension: '.sh'
cross: '--cross'
rootfs: '/crossrootfs/x64'
- name: windows
image: windows-latest
extension: '.cmd'
cross: ''
rootfs: ''
runs-on: ${{ matrix.os.image }}
container: ${{ matrix.os.container }}
name: Format jit codebase ${{ matrix.os.name }}
steps:
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Checkout runtime
uses: actions/checkout@v4
with:
path: runtime
- name: Install Python
uses: actions/setup-python@v5
- name: Run jitformat.py
run: |
python3 runtime/src/coreclr/scripts/jitformat.py -r runtime -o ${{ matrix.os.name }} -a x64 ${{ matrix.os.cross }}
env:
ROOTFS_DIR: ${{ matrix.os.rootfs }}
- name: Publish format.patch
uses: actions/upload-artifact@v4
with:
path: runtime/format.patch
name: format.${{matrix.os.name}}.patch
if: failure()