Add caching of the installed cross binary

This commit is contained in:
Dave Rolsky
2023-07-22 09:43:41 -05:00
parent dd8fb2fac4
commit b1e766fe8f
6 changed files with 51 additions and 6 deletions

View File

@@ -1,8 +1,9 @@
set -e
set -x
if [ -f "$RUNNER_TEMP/cross" ]; then
echo "build-command=$RUNNER_TEMP/cross" >> $GITHUB_OUTPUT
CROSS_DIR="$1"
if [ -f "$CROSS_DIR/cross" ]; then
echo "build-command=$CROSS_DIR/cross" >> $GITHUB_OUTPUT
else
echo "build-command=cargo" >> $GITHUB_OUTPUT
fi