mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Toolchain+CI: Remove unused TRY_USE_LOCAL_TOOLCHAIN parameter
This was used to create a .tar of the built Clang toolchain, but now we just upload the built toolchain artifacts (same as the GNU toolchain).
This commit is contained in:
parent
5e34a41f06
commit
daa9e852c9
Notes:
sideshowbarker
2024-07-16 20:44:03 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/daa9e852c9 Pull-request: https://github.com/SerenityOS/serenity/pull/24337
2 changed files with 0 additions and 55 deletions
1
.github/workflows/serenity-template.yml
vendored
1
.github/workflows/serenity-template.yml
vendored
|
@ -83,7 +83,6 @@ jobs:
|
|||
env:
|
||||
ARCH: ${{ inputs.arch}}
|
||||
CCACHE_DIR: ${{ env.TOOLCHAIN_CCACHE_DIR }}
|
||||
TRY_USE_LOCAL_TOOLCHAIN: 'y'
|
||||
|
||||
- name: Build AArch64 Qemu
|
||||
if: ${{ inputs.arch == 'aarch64' && !steps.cache-restore.outputs.qemu_cache_hit }}
|
||||
|
|
|
@ -159,43 +159,6 @@ else
|
|||
buildstep setup echo "Using user-provided CFLAGS/CXXFLAGS."
|
||||
fi
|
||||
|
||||
# === CHECK CACHE AND REUSE ===
|
||||
|
||||
pushd "$DIR"
|
||||
if [ "$TRY_USE_LOCAL_TOOLCHAIN" = "y" ]; then
|
||||
mkdir -p Cache
|
||||
echo "Cache (before):"
|
||||
ls -l Cache
|
||||
CACHED_TOOLCHAIN_ARCHIVE="Cache/ToolchainBinariesGithubActions.tar.gz"
|
||||
if [ -r "${CACHED_TOOLCHAIN_ARCHIVE}" ] ; then
|
||||
echo "Cache at ${CACHED_TOOLCHAIN_ARCHIVE} exists!"
|
||||
echo "Extracting toolchain from cache:"
|
||||
if tar xzf "${CACHED_TOOLCHAIN_ARCHIVE}" ; then
|
||||
echo "Done 'building' the toolchain."
|
||||
echo "Cache unchanged."
|
||||
exit 0
|
||||
else
|
||||
echo
|
||||
echo
|
||||
echo
|
||||
echo "Could not extract cached toolchain archive."
|
||||
echo "This means the cache is broken and *should be removed*!"
|
||||
echo "As Github Actions cannot update a cache, this will unnecessarily"
|
||||
echo "slow down all future builds for this hash, until someone"
|
||||
echo "resets the cache."
|
||||
echo
|
||||
echo
|
||||
echo
|
||||
rm -f "${CACHED_TOOLCHAIN_ARCHIVE}"
|
||||
fi
|
||||
else
|
||||
echo "Cache at ${CACHED_TOOLCHAIN_ARCHIVE} does not exist."
|
||||
echo "Will rebuild toolchain from scratch, and save the result."
|
||||
fi
|
||||
fi
|
||||
echo "::group::Actually building Toolchain"
|
||||
popd
|
||||
|
||||
# === DOWNLOAD AND PATCH ===
|
||||
|
||||
pushd "$DIR/Tarballs"
|
||||
|
@ -310,20 +273,3 @@ pushd "$DIR/Local/clang/bin/"
|
|||
echo "--sysroot=$BUILD/${arch}clang/Root" > "$arch"-pc-serenity.cfg
|
||||
done
|
||||
popd
|
||||
|
||||
# === SAVE TO CACHE ===
|
||||
|
||||
pushd "$DIR"
|
||||
if [ "$TRY_USE_LOCAL_TOOLCHAIN" = "y" ]; then
|
||||
echo "::endgroup::"
|
||||
echo "Building cache tar:"
|
||||
|
||||
echo "Building cache tar:"
|
||||
|
||||
rm -f "${CACHED_TOOLCHAIN_ARCHIVE}" # Just in case
|
||||
|
||||
tar czf "${CACHED_TOOLCHAIN_ARCHIVE}" Local/
|
||||
echo "Cache (after):"
|
||||
ls -l Cache
|
||||
fi
|
||||
popd
|
||||
|
|
Loading…
Reference in a new issue