-
Notifications
You must be signed in to change notification settings - Fork 304
83 lines (71 loc) · 1.89 KB
/
ssj-ci.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
83
name: SSJ-CI
on:
push:
branches:
- main
pull_request: {}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
concurrency:
group: ssj-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
jobs:
paths-filter:
runs-on: ubuntu-latest
outputs:
crates: ${{ steps.filter.outputs.crates }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
crates:
- 'cairo/kakarot-ssj/crates/**'
ssj-build:
needs: paths-filter
if: needs.paths-filter.outputs.crates == 'true'
uses: ./.github/workflows/ssj-build.yml
with:
artifact-name: ssj-build
ssj-tests-unit:
needs: paths-filter
if: needs.paths-filter.outputs.crates == 'true'
uses: ./.github/workflows/ssj-tests-unit.yml
with:
run-fmt-check: false
ssj-ef-tests:
uses: ./.github/workflows/ssj-ef-tests.yml
needs:
- ssj-build
- paths-filter
if: needs.paths-filter.outputs.crates == 'true'
with:
artifact-name: ssj-build
ssj-resources:
runs-on: ubuntu-latest
needs:
- ssj-ef-tests
- paths-filter
if: needs.paths-filter.outputs.crates == 'true'
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v2
with:
enable-cache: true
cache-dependency-glob: uv.lock
- uses: actions/setup-python@v5
with:
python-version-file: .python-version
- name: Install dependencies
run: make setup-ci
- name: Load performance artifacts
uses: actions/download-artifact@v4
with:
path: resources
name: resources
- name: Check resources evolution
run: |
result=$(GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} make check-resources 2>&1)
echo "$result" >> "$GITHUB_STEP_SUMMARY"