Skip to content

Commit f755483

Browse files
deployment: add graphite ci-optimizations for upload_artifacts_workflow
1 parent cdae0bc commit f755483

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/upload_artifacts_workflow.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,22 @@ env:
4646
RUSTFLAGS: "-D warnings"
4747

4848
jobs:
49+
# https://graphite.com/docs/stacking-and-ci
50+
optimize_ci:
51+
runs-on: namespace-profile-small-ubuntu-24-04-amd64
52+
outputs:
53+
skip: ${{ steps.check_skip.outputs.skip }}
54+
steps:
55+
- name: Optimize CI
56+
id: check_skip
57+
uses: withgraphite/graphite-ci-action@main
58+
with:
59+
graphite_token: ${{ secrets.GRAPHITE_CI_OPTIMIZER_TOKEN }}
60+
4961
native-blockifier-artifacts-push:
5062
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
63+
needs: optimize_ci
64+
if: needs.optimize_ci.outputs.skip == 'false'
5165
steps:
5266
- uses: actions/checkout@v6
5367

0 commit comments

Comments
 (0)