diff --git a/.github/workflows/macos-ci-build-and-test-workflow.yml b/.github/workflows/macos-ci-build-and-test-workflow.yml index 2258891b8697e..a387541488621 100644 --- a/.github/workflows/macos-ci-build-and-test-workflow.yml +++ b/.github/workflows/macos-ci-build-and-test-workflow.yml @@ -65,6 +65,12 @@ jobs: xcode_version: ${{ matrix.xcode_version }} use_cache: true + - uses: actions/cache@v3 + id: onnx-node-tests-cache + with: + path: ${{ github.workspace }}/js/test/ + key: onnxnodetests-${{ hashFiles('js/scripts/prepare-onnx-node-tests.ts') }} + - name: Setup environment variables shell: bash run: | diff --git a/.github/workflows/windows_cuda.yml b/.github/workflows/windows_cuda.yml index d26ee0a2b766e..a36f0c3142d7d 100644 --- a/.github/workflows/windows_cuda.yml +++ b/.github/workflows/windows_cuda.yml @@ -65,6 +65,12 @@ jobs: java-version: '17' architecture: x64 + - uses: actions/cache@v3 + id: onnx-node-tests-cache + with: + path: ${{ github.workspace }}/js/test/ + key: onnxnodetests-${{ hashFiles('js/scripts/prepare-onnx-node-tests.ts') }} + - name: API Documentation Check and generate run: | set ORT_DOXY_SRC=${{ github.workspace }} @@ -132,4 +138,4 @@ jobs: DocUpdateNeeded: false ONNXRUNTIME_TEST_GPU_DEVICE_ID: '0' AZCOPY_AUTO_LOGIN_TYPE: MSI - AZCOPY_MSI_CLIENT_ID: 63b63039-6328-442f-954b-5a64d124e5b4 \ No newline at end of file + AZCOPY_MSI_CLIENT_ID: 63b63039-6328-442f-954b-5a64d124e5b4 diff --git a/.github/workflows/windows_webgpu.yml b/.github/workflows/windows_webgpu.yml index 7b8415c223e0f..908f28ae174d3 100644 --- a/.github/workflows/windows_webgpu.yml +++ b/.github/workflows/windows_webgpu.yml @@ -91,6 +91,12 @@ jobs: shell: cmd working-directory: ${{ github.workspace }} + - uses: actions/cache@v3 + id: onnx-node-tests-cache + with: + path: ${{ github.workspace }}/js/test/ + key: onnxnodetests-${{ hashFiles('js/scripts/prepare-onnx-node-tests.ts') }} + - name: Export GitHub Actions cache environment variables uses: actions/github-script@v7 with: @@ -259,4 +265,4 @@ jobs: - name: Validate C# native delegates run: python tools\ValidateNativeDelegateAttributes.py shell: cmd - working-directory: ${{ github.workspace }}\csharp \ No newline at end of file + working-directory: ${{ github.workspace }}\csharp diff --git a/.github/workflows/windows_x64_debug_build_x64_debug.yml b/.github/workflows/windows_x64_debug_build_x64_debug.yml index b8d1bdf228261..2508bb2079119 100644 --- a/.github/workflows/windows_x64_debug_build_x64_debug.yml +++ b/.github/workflows/windows_x64_debug_build_x64_debug.yml @@ -75,6 +75,12 @@ jobs: run: | nuget restore ${{ github.workspace }}\packages.config -PackagesDirectory ${{ github.workspace }}\build\Debug -ConfigFile ${{ github.workspace }}\NuGet.config + - uses: actions/cache@v3 + id: onnx-node-tests-cache + with: + path: ${{ github.workspace }}/js/test/ + key: onnxnodetests-${{ hashFiles('js/scripts/prepare-onnx-node-tests.ts') }} + - name: Export GitHub Actions cache environment variables uses: actions/github-script@v7 with: @@ -126,4 +132,4 @@ jobs: env: OrtPackageId: Microsoft.ML.OnnxRuntime OnnxRuntimeBuildDirectory: ${{ github.workspace }}\build - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 'true' \ No newline at end of file + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 'true' diff --git a/.github/workflows/windows_x64_release_build_x64_release.yml b/.github/workflows/windows_x64_release_build_x64_release.yml index c0e8fb24bc615..58a94c2f2208a 100644 --- a/.github/workflows/windows_x64_release_build_x64_release.yml +++ b/.github/workflows/windows_x64_release_build_x64_release.yml @@ -75,6 +75,12 @@ jobs: run: | nuget restore ${{ github.workspace }}\packages.config -PackagesDirectory ${{ github.workspace }}\build\RelWithDebInfo -ConfigFile ${{ github.workspace }}\NuGet.config + - uses: actions/cache@v3 + id: onnx-node-tests-cache + with: + path: ${{ github.workspace }}/js/test/ + key: onnxnodetests-${{ hashFiles('js/scripts/prepare-onnx-node-tests.ts') }} + - name: Export GitHub Actions cache environment variables uses: actions/github-script@v7 with: diff --git a/.github/workflows/windows_x64_release_dnnl_build_x64_release.yml b/.github/workflows/windows_x64_release_dnnl_build_x64_release.yml index 2ac7a4a646eb0..5b45f040c990b 100644 --- a/.github/workflows/windows_x64_release_dnnl_build_x64_release.yml +++ b/.github/workflows/windows_x64_release_dnnl_build_x64_release.yml @@ -75,6 +75,12 @@ jobs: run: | nuget restore ${{ github.workspace }}\packages.config -PackagesDirectory ${{ github.workspace }}\build\RelWithDebInfo -ConfigFile ${{ github.workspace }}\NuGet.config + - uses: actions/cache@v3 + id: onnx-node-tests-cache + with: + path: ${{ github.workspace }}/js/test/ + key: onnxnodetests-${{ hashFiles('js/scripts/prepare-onnx-node-tests.ts') }} + - name: Export GitHub Actions cache environment variables uses: actions/github-script@v7 with: @@ -122,4 +128,4 @@ jobs: env: OrtPackageId: Microsoft.ML.OnnxRuntime OnnxRuntimeBuildDirectory: ${{ github.workspace }}\build - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 'true' \ No newline at end of file + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 'true'