refactor: migrate to gitea actions
This commit is contained in:
11 files changed
+504
-7
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
: "${SCCACHE_REDIS_ENDPOINT:?Set the persistent sccache Redis endpoint}"
|
||||
: "${JOBS:=8}"
|
||||
case "$JOBS" in ''|*[!0-9]*|0) echo 'JOBS must be a positive integer' >&2; exit 1 ;; esac
|
||||
|
||||
sccache --start-server
|
||||
trap 'sccache --show-stats; sccache --stop-server' EXIT
|
||||
sccache --zero-stats
|
||||
# Bootstrap/Ninja does not inherit Make's job count. Bound both explicitly.
|
||||
make package/rust/host/compile -j"$JOBS" RUST_BUILD_JOBS="$JOBS" || \
|
||||
make package/rust/host/compile -j1 RUST_BUILD_JOBS=1 V=sc
|
||||
rm -rf build_dir/host/rustc-*/rustc-*/build dl/rustc-*.tar.*
|
||||
Reference in new issue
Block a user