Skip to content

Commit

Permalink
Add build_test_all_windows CI job. (#11050)
Browse files Browse the repository at this point in the history
Progress on #11009

Sample successful run:
https://github.com/iree-org/iree/actions/runs/3448018286/jobs/5754640528

At first this will only run on postsubmit, then we can move this to
presubmit if it is stable and we have enough resources. We should also
keep an eye on how long this takes to run (checkout seems to take
substantially longer than on Linux), and also consider using Docker to
manage the dependencies and environment.

Notes:
* This does not test Vulkan or CUDA - we'd want a runner with a physical
GPU (or SwiftShader) for that
* This downloads CUDA deps on demand via CMake (so there's some
additional network activity)
  • Loading branch information
ScottTodd authored Nov 12, 2022
1 parent 4ffe00d commit 98910eb
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,35 @@ jobs:
gcloud alpha storage cp "${BUILD_DIR_ARCHIVE}" "${BUILD_DIR_GCS_ARTIFACT}"
echo "::set-output name=build-dir-gcs-artifact::${BUILD_DIR_GCS_ARTIFACT}"
build_test_all_windows:
needs: setup
if: needs.setup.outputs.should-run == 'true' && needs.setup.outputs.ci-stage == 'postsubmit'
runs-on: managed-windows-cpu
defaults:
run:
shell: bash
env:
BUILD_DIR: build-windows
IREE_VULKAN_DISABLE: 1
steps:
- name: "Checking out repository"
uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # v2
with:
submodules: true
- name: "Setting up Python"
uses: actions/setup-python@7f80679172b057fc5e90d70d197929d454754a5a # v2
- name: "Installing Python packages"
run: |
python3 -m venv .venv
.venv/Scripts/activate.bat
python3 -m pip install -r runtime/bindings/python/iree/runtime/build_requirements.txt
- name: "Configuring MSVC"
uses: ilammy/msvc-dev-cmd@7315a94840631165970262a99c72cfb48a65d25d # v1.12.0
- name: "Building IREE"
run: ./build_tools/cmake/build_all.sh "${BUILD_DIR}"
- name: "Testing IREE"
run: ./build_tools/cmake/ctest_all.sh "${BUILD_DIR}"

build_test_all_bazel:
needs: setup
if: needs.setup.outputs.should-run == 'true'
Expand Down Expand Up @@ -745,6 +774,7 @@ jobs:
needs:
# Basic
- build_all
- build_test_all_windows
- build_test_all_bazel
- test_all
- test_gpu
Expand Down

0 comments on commit 98910eb

Please sign in to comment.