-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve CI build time Cache /opt/ttmlir-toolchain - moved ttmlir-toolchain build to separate action - build ttmlir-toolchain only if files in env/ are changed or there is no cache Use ccache for builds - Add ccache to build - Ccache folder will be cached between pipeline runs env/CMakeLists.txt - Moved dependency versions to variables
- Loading branch information
1 parent
907f53e
commit 8f9799e
Showing
3 changed files
with
43 additions
and
20 deletions.
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: 'Build ttmlir-toolchain' | ||
description: 'Loads the ttmlir-toolchain from cache or builds it if there is no cache hit' | ||
inputs: | ||
os: | ||
description: 'Operating System' | ||
required: true | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Mkdir /opt/ttmlir-toolchain | ||
shell: bash | ||
run: | | ||
sudo mkdir -p /opt/ttmlir-toolchain | ||
sudo chown -R ${USER} /opt/ttmlir-toolchain | ||
- name: 'Cache ttmlir-toolchain' | ||
id: cache-toolchain | ||
uses: actions/cache@v3 | ||
with: | ||
path: /opt/ttmlir-toolchain | ||
key: ${{ inputs.os }}-ttmlir-toolchain-${{ hashFiles('env/**') }} | ||
|
||
- name: 'Build ttmlir-toolchain' | ||
if: steps.cache-toolchain.outputs.cache-hit != 'true' | ||
shell: bash | ||
run: | | ||
source env/activate | ||
cmake -B env/build env | ||
cmake --build env/build |
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
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