Skip to content

Commit

Permalink
Last resort: use OVERRIDEVERSIONCHECK for raspberry_pi_64
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Aug 5, 2024
1 parent 13f026c commit da841ef
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,23 @@ jobs:
# - TODO: "ld: library not found for -lc",
# see solutions on https://forum.lazarus.freepascal.org/index.php?topic=61430.15
# - For now, in the end: using self-hosted macos_x64 for Intel mac.
runner: [ubuntu-latest, windows-latest, macos_x64,
#raspberry_pi_64,
raspberry_pi_32]
runner: [ubuntu-latest, windows-latest, macos_x64, raspberry_pi_64, raspberry_pi_32]
include:
# Set matrix.is_unix, makes if conditions easier.
- is_unix: false
- runner: ubuntu-latest
is_unix: true
- runner: macos_x64
is_unix: true
# - runner: raspberry_pi_64
# is_unix: true
- runner: raspberry_pi_64
is_unix: true
- runner: raspberry_pi_32
is_unix: true

# Set matrix.needs_fpc_fixes_branch, when you need FPC 3.2.3 (fixes_3_2 branch)
- needs_fpc_fixes_branch: false
# - runner: raspberry_pi_64
# needs_fpc_fixes_branch: true
- runner: raspberry_pi_64
needs_fpc_fixes_branch: true
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -94,7 +92,10 @@ jobs:
esac
echo "For this CPU, the FPC ppcxxx binary is called ${PPC_NAME}"
if [ -f "bootstrap-fpc/3.2.2/${PPC_NAME}" ]; then
BOOTSTRAP_FPC=FPC=`pwd`/bootstrap-fpc/3.2.2/${PPC_NAME}
# TODO: For unknown reason, providing FPC=... doesn't work, it's not used by make.
# It still complains that we try to build 3.2.2 with 3.2.3, despite we provide FPC=... with 3.2.2.
# BOOTSTRAP_FPC=FPC=`pwd`/bootstrap-fpc/3.2.2/${PPC_NAME}
BOOTSTRAP_FPC=OVERRIDEVERSIONCHECK=1
echo "BOOTSTRAP_FPC=${BOOTSTRAP_FPC}" >> $GITHUB_ENV
echo "Using precompiled FPC for bootstrap: ${BOOTSTRAP_FPC}"
fi
Expand All @@ -111,7 +112,7 @@ jobs:
cd fpcsrc/
echo "Bootstrap FPC: ${BOOTSTRAP_FPC}"
echo "Executing: " make clean all install INSTALL_PREFIX="${GITHUB_WORKSPACE}"/fpc ${BOOTSTRAP_FPC} OPT="${FPC_OPTS}"
make clean all install INSTALL_PREFIX="${GITHUB_WORKSPACE}"/fpc ${BOOTSTRAP_FPC} OPT="${FPC_OPTS}" --debug
make clean all install INSTALL_PREFIX="${GITHUB_WORKSPACE}"/fpc ${BOOTSTRAP_FPC} OPT="${FPC_OPTS}"
# TODO: enable this
# but it makes CGE pack_release job fail with "out of disk space" -- indeed FPC zips are larger.
Expand Down

0 comments on commit da841ef

Please sign in to comment.