Skip to content

Commit

Permalink
Try dev drive for Windows runtime CI job.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Aug 8, 2024
1 parent a7e5788 commit 877613a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ jobs:
fail-fast: false
matrix:
include:
- name: ubuntu-20.04
runs-on: ubuntu-20.04
# - name: ubuntu-20.04
# runs-on: ubuntu-20.04
- name: windows-2022
runs-on: windows-2022
- name: macos-14
runs-on: macos-14
# - name: macos-14
# runs-on: macos-14
env:
BUILD_DIR: build-runtime
steps:
Expand All @@ -192,12 +192,19 @@ jobs:
run: bash ./build_tools/scripts/git/update_runtime_submodules.sh
- name: Install Python requirements
run: pip install -r ./runtime/bindings/python/iree/runtime/build_requirements.txt
- name: (Windows) Setup Dev Drive
uses: samypr100/setup-dev-drive@v3
if: contains(matrix.name, 'windows')
with:
workspace-copy: true
drive-size: 8GB
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.job }}-${{ matrix.name }}
save: ${{ needs.setup.outputs.write-caches == 1 }}
- name: CMake - configure
working-directory: ${{ env.DEV_DRIVE_WORKSPACE }}
run: |
cmake \
-G Ninja \
Expand All @@ -211,8 +218,10 @@ jobs:
-DIREE_ENABLE_LLD=ON \
-DIREE_ENABLE_ASSERTIONS=ON
- name: CMake - build
working-directory: ${{ env.DEV_DRIVE_WORKSPACE }}
run: cmake --build ${BUILD_DIR} -- -k 0
- name: CTest
working-directory: ${{ env.DEV_DRIVE_WORKSPACE }}
run: bash ./build_tools/cmake/ctest_all.sh "${BUILD_DIR}"

runtime_small:
Expand Down
3 changes: 2 additions & 1 deletion build_tools/github_actions/configure_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,8 @@ def main():
"is-pr": json.dumps(is_pr),
"runner-env": get_runner_env(trailers),
"runner-group": "presubmit" if is_pr else "postsubmit",
"write-caches": "0" if is_pr else "1",
# "write-caches": "0" if is_pr else "1",
"write-caches": "1",
"benchmark-presets": benchmark_presets,
}

Expand Down

0 comments on commit 877613a

Please sign in to comment.