Commit f954cbb8 authored by smartcontracts's avatar smartcontracts Committed by GitHub

ci: speed up CI by up to 50% (#11794)

Introduces a number of improvements to CI that significantly
reduce overal CI time by up to 50% of the previous time.
parent 75c73266
This diff is collapsed.
...@@ -79,6 +79,11 @@ snapshots-no-build: snapshots-abi-storage ...@@ -79,6 +79,11 @@ snapshots-no-build: snapshots-abi-storage
# Builds contracts and then generates core snapshots. # Builds contracts and then generates core snapshots.
snapshots: build snapshots-no-build snapshots: build snapshots-no-build
# Checks if the snapshots are up to date without building.
snapshots-check-no-build:
./scripts/checks/check-snapshots.sh --no-build
# Checks if the snapshots are up to date.
snapshots-check: snapshots-check:
./scripts/checks/check-snapshots.sh ./scripts/checks/check-snapshots.sh
......
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
# Generate the snapshots # Check for the --no-build flag
just snapshots # Generate snapshots
if [ "$1" == "--no-build" ]; then
just snapshots-no-build
else
just snapshots
fi
# Check if the generated `snapshots` files are different from the committed versions # Check if the generated `snapshots` files are different from the committed versions
if git diff --exit-code snapshots > /dev/null; then if git diff --exit-code snapshots > /dev/null; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment