-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Elias Joseph <[email protected]>
- Loading branch information
Elias Joseph
committed
Sep 9, 2024
1 parent
9dc6b90
commit fa5bf58
Showing
4 changed files
with
75 additions
and
1 deletion.
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
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,13 @@ | ||
import sys | ||
import re | ||
|
||
key = str(sys.argv[1]) | ||
|
||
f_ = open("build_tools/ccache/fuse_connection.yaml") | ||
s = f_.read() | ||
f_.close() | ||
|
||
s = re.sub("CCACHE_KEY", key, s) | ||
f_ = open("build_tools/ccache/fuse_connection2.yaml", "w+") | ||
f_.write(s) | ||
f_.close() |
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,22 @@ | ||
logging: | ||
type: syslog | ||
level: LOG_INFO | ||
|
||
components: | ||
- libfuse | ||
- attr_cache | ||
- azstorage | ||
|
||
libfuse: | ||
path: /mnt/azureblob | ||
allow-other: true | ||
|
||
cap_add: | ||
- SYS_ADMIN | ||
devices: | ||
- /dev/fuse | ||
|
||
azstorage: | ||
account-name: eliasteststorageaccount1 | ||
account-key: CCACHE_KEY | ||
container: ccache-container |
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,19 @@ | ||
#!/bin/bash | ||
# Copyright 2022 The IREE Authors | ||
# | ||
# Licensed under the Apache License v2.0 with LLVM Exceptions. | ||
# See https://llvm.org/LICENSE.txt for license information. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
set -euo pipefail | ||
|
||
CCACHE_VERSION="$1" | ||
|
||
ARCH="$(uname -m)" | ||
|
||
curl --silent --fail --show-error --location \ | ||
"https://github.com/ccache/ccache/releases/download/v${CCACHE_VERSION}/ccache-${CCACHE_VERSION}-linux-${ARCH}.tar.xz" \ | ||
--output ccache.tar.xz | ||
|
||
tar xf ccache.tar.xz | ||
cp ccache-${CCACHE_VERSION}-linux-${ARCH}/ccache /usr/local/bin |