-
Notifications
You must be signed in to change notification settings - Fork 651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented caching with Azure containers using sccache #18466
Merged
Eliasj42
merged 1 commit into
shared/runner-cluster-migration
from
shared/runner-cluster-migration-ccache
Sep 10, 2024
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,12 +29,17 @@ jobs: | |
needs: setup | ||
if: contains(fromJson(needs.setup.outputs.enabled-jobs), 'linux_x64_clang') | ||
runs-on: azure-linux-scale | ||
container: ghcr.io/iree-org/cpubuilder_ubuntu_jammy_x86_64@sha256:ba10d33ef502d8b33aaa43800e640a6866983ef353b73fda2ed6595c4275e066 | ||
container: | ||
image: ghcr.io/iree-org/cpubuilder_ubuntu_jammy_x86_64@sha256:2b2ad51d7de988be13086bc618d89d2ba47fbf09eb5b38c60dce82b595fb1c74 | ||
defaults: | ||
run: | ||
shell: bash | ||
env: | ||
BUILD_DIR: build | ||
SCCACHE_AZURE_CONNECTION_STRING: "${{ secrets.AZURE_CCACHE_CONNECTION_STRING }}" | ||
SCCACHE_AZURE_BLOB_CONTAINER: ccache-container | ||
SCCACHE_CACHE_ZSTD_LEVEL: 10 | ||
SCCACHE_AZURE_KEY_PREFIX: "ci_linux_x64_clang" | ||
steps: | ||
- name: "Checking out repository" | ||
uses: actions/[email protected] | ||
|
@@ -54,12 +59,17 @@ jobs: | |
-DIREE_ENABLE_LLD=ON \ | ||
-DIREE_ENABLE_ASSERTIONS=ON \ | ||
-DIREE_BUILD_DOCS=ON \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \ | ||
-DCMAKE_C_COMPILER_LAUNCHER=sccache \ | ||
-DIREE_TARGET_BACKEND_WEBGPU_SPIRV=ON | ||
- name: CMake - build | ||
ScottTodd marked this conversation as resolved.
Show resolved
Hide resolved
|
||
run: | | ||
sccache --zero-stats | ||
sccache --show-stats | ||
cmake --build ${BUILD_DIR} -- -k 0 | ||
cmake --build ${BUILD_DIR} --target install -- -k 0 | ||
cmake --build ${BUILD_DIR} --target iree-test-deps -- -k 0 | ||
sccache --show-stats | ||
- name: Run CTest | ||
run: ./build_tools/cmake/ctest_all.sh "${BUILD_DIR}" | ||
- name: Test iree-dialects | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're having some offline discussions about readonly vs readwrite and PRs from the main repo and from forks.