Build Actions Cache #372
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Actions Cache | |
| on: | |
| workflow_dispatch: # allows manual triggering | |
| schedule: | |
| - cron: '0 * * * *' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| #ubuntu-24-spacemit-cache: | |
| # runs-on: ubuntu-24.04 | |
| # env: | |
| # # Make sure this is in sync with build-linux-cross.yml | |
| # SPACEMIT_IME_TOOLCHAIN_VERSION: "1.1.2" | |
| # steps: | |
| # - name: Clone | |
| # id: checkout | |
| # uses: actions/checkout@v6 | |
| # - name: Setup Cache | |
| # uses: actions/cache@v5 | |
| # id: cache-toolchain | |
| # with: | |
| # path: ./spacemit_toolchain | |
| # key: cache-gha-spacemit-ime-toolchain-v${{ env.SPACEMIT_IME_TOOLCHAIN_VERSION }}-${{ runner.os }} | |
| # - name: Setup SpacemiT Toolchain | |
| # if: steps.cache-toolchain.outputs.cache-hit != 'true' | |
| # uses: ./.github/actions/linux-setup-spacemit | |
| # with: | |
| # path: ./spacemit_toolchain | |
| # version: ${{ env.SPACEMIT_IME_TOOLCHAIN_VERSION }} | |
| ubuntu-24-openvino-cache: | |
| runs-on: ubuntu-24.04 | |
| env: | |
| # Sync versions in build-openvino.yml, build-self-hosted.yml, release.yml, build-cache.yml, .devops/openvino.Dockerfile | |
| OPENVINO_VERSION_MAJOR: "2026.3" | |
| OPENVINO_VERSION_FULL: "2026.3.0.22451.bd8d6542e3c" | |
| steps: | |
| - name: Clone | |
| id: checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Cache | |
| uses: actions/cache@v5 | |
| id: cache-openvino | |
| with: | |
| path: ./openvino_toolkit | |
| key: cache-gha-openvino-toolkit-v${{ env.OPENVINO_VERSION_FULL }}-${{ runner.os }} | |
| - name: Setup OpenVINO Toolkit | |
| if: steps.cache-openvino.outputs.cache-hit != 'true' | |
| uses: ./.github/actions/linux-setup-openvino | |
| with: | |
| path: ./openvino_toolkit | |
| version_major: ${{ env.OPENVINO_VERSION_MAJOR }} | |
| version_full: ${{ env.OPENVINO_VERSION_FULL }} | |
| windows-2022-openvino-cache: | |
| runs-on: windows-2022 | |
| env: | |
| # Sync versions in build.yml, build-self-hosted.yml, release.yml, build-cache.yml, .devops/openvino.Dockerfile | |
| OPENVINO_VERSION_MAJOR: "2026.3" | |
| OPENVINO_VERSION_FULL: "2026.3.0.22451.bd8d6542e3c" | |
| steps: | |
| - name: Clone | |
| id: checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Cache | |
| uses: actions/cache@v5 | |
| id: cache-openvino | |
| with: | |
| path: ./openvino_toolkit | |
| key: cache-gha-openvino-toolkit-v${{ env.OPENVINO_VERSION_FULL }}-${{ runner.os }} | |
| - name: Setup OpenVINO Toolkit | |
| if: steps.cache-openvino.outputs.cache-hit != 'true' | |
| uses: ./.github/actions/windows-setup-openvino | |
| with: | |
| path: ./openvino_toolkit | |
| version_major: ${{ env.OPENVINO_VERSION_MAJOR }} | |
| version_full: ${{ env.OPENVINO_VERSION_FULL }} | |
| # windows-2022-rocm-cache: | |
| # runs-on: windows-2022 | |
| # env: | |
| # # Make sure this is in sync with release.yml and build-cuda-windows.yml | |
| # ROCM_VERSION: "7.14.0" | |
| # steps: | |
| # - name: Clone | |
| # id: checkout | |
| # uses: actions/checkout@v6 | |
| # - name: Setup Cache | |
| # uses: actions/cache@v5 | |
| # id: cache-rocm | |
| # with: | |
| # path: C:\TheRock\build | |
| # key: rocm-wheels-${{ env.ROCM_VERSION }}-multi-arch-${{ runner.os }} | |
| # - name: Setup ROCm | |
| # if: steps.cache-rocm.outputs.cache-hit != 'true' | |
| # uses: ./.github/actions/windows-setup-rocm | |
| # with: | |
| # version: ${{ env.ROCM_VERSION }} |