1- # Copyright (c) 2022-2025 , NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+ # Copyright (c) 2022-2026 , NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22#
33# See LICENSE for license information.
44
@@ -24,11 +24,14 @@ jobs:
2424 uses : actions/checkout@v3
2525 with :
2626 submodules : recursive
27+ - name : ccache
28+ uses : mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad
2729 - name : ' Build'
28- run : pip install --no-build-isolation . -v
30+ run : NVTE_USE_CCACHE=1 NVTE_CCACHE_BIN=sccache pip install --no-build-isolation . -v
2931 env :
3032 NVTE_FRAMEWORK : none
3133 MAX_JOBS : 1
34+ SCCACHE_GHA_ENABLED : " true"
3235 - name : ' Sanity check'
3336 run : python3 -c "import transformer_engine"
3437 working-directory : /
@@ -89,16 +92,20 @@ jobs:
8992 options : --user root
9093 steps :
9194 - name : ' Dependencies'
92- run : pip install pybind11[global]
95+ run : pip install cmake==3.21.0 pybind11[global]
9396 - name : ' Checkout'
9497 uses : actions/checkout@v3
9598 with :
9699 submodules : recursive
100+ - name : ccache
101+ uses : mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad
97102 - name : ' Build'
98- run : pip install --no-build-isolation . -v
103+ run : |
104+ NVTE_CCACHE_BIN=sccache NVTE_USE_CCACHE=1 pip install --no-build-isolation . -v
99105 env :
100106 NVTE_FRAMEWORK : jax
101107 MAX_JOBS : 1
108+ SCCACHE_GHA_ENABLED : " true"
102109 - name : ' Sanity check'
103110 run : python3 tests/jax/test_sanity_import.py
104111 all :
@@ -137,10 +144,9 @@ jobs:
137144 - name : ' Dependencies'
138145 run : |
139146 docker exec builder bash -c '\
140- pip install pybind11[global] einops onnxscript && \
147+ pip install cmake==3.21.0 pybind11[global] einops onnxscript && \
141148 pip install torch --no-cache-dir --index-url https://download.pytorch.org/whl/cu130
142149 '
143-
144150 - name : ' Build'
145151 run : docker exec builder bash -c 'pip install --no-cache-dir --no-build-isolation . -v --no-deps'
146152 env :
0 commit comments