-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Activate caching and remove YAML devops nonsense
* Activates ccache for continuous-integration * Moves all CI code into a file .github/continuous-integration.sh
- Loading branch information
Showing
2 changed files
with
49 additions
and
28 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,41 @@ | ||
#!/bin/bash | ||
|
||
set -e # Terminates as soon as something fails | ||
|
||
export PATH="$A2M_BUILD/llvm-build/bin:$PATH" | ||
|
||
function run-step { | ||
echo "Running $@" | ||
"$@" | ||
} | ||
|
||
if [[ -d "${PERSIST_DIR}/ccache-cachedir" ]]; then | ||
echo "The Ccache directory exists at ${PERSIST_DIR}/ccache-cachedir" | ||
else | ||
echo "Creating Ccache directory at ${PERSIST_DIR}/ccache-cachedir" | ||
mkdir -p ${PERSIST_DIR}/ccache-cachedir | ||
envsubst > ${PERSIST_DIR}/ccache-config <<EOF | ||
max_size = 20G | ||
cache_dir = ${PERSIST_DIR}/ccache-cachedir | ||
EOF | ||
fi | ||
|
||
( | ||
run-step cd arc-mlir | ||
A2M_CCACHE="1" BUILD_FLAVOUR=Release A2M_ASSERTS="1" run-step ./arc-mlir-build | ||
run-step ninja -C $A2M_BUILD/llvm-build/ check-arc-mlir | ||
) | ||
|
||
( | ||
run-step cd arc-script | ||
run-step cargo insta test --package=arc-script-test-compile | ||
run-step cargo insta accept | ||
run-step cargo clippy | ||
run-step cargo check | ||
run-step cargo check --bins | ||
run-step cargo check --tests | ||
run-step cargo check --examples | ||
run-step cargo check --benches | ||
run-step cargo fuzz run parse -- -runs=10000 -only-ascii | ||
# run-step cargo fmt -- -v --check | ||
) |
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