mirror of
https://github.com/ares-emulator/ares.git
synced 2026-10-12 02:11:04 +00:00
With FreeBSD 15.0 going EOL very soon, it is time to update the runner in the CI to FreeBSD 15.1. This version is supported by Cross-Platform GitHub Actions since version 1.3.0, and the runner is updated to the currently newest version 1.6.0, which corresponds to the commit https://github.com/cross-platform-actions/action/commit/e0b9770014ba65d5e0815f15b74031c3a635f641. Using the operating system's shell for running commands inside steps is deprecated. Cross-Platform GitHub Actions provides and recommends the new custom shell cpa.sh instead, which the runner is now using. This requires to split the "Build: FreeBSD" step into at least one separate step for setting up the VM before executing commands in the following steps. This opens up the opportunity to be more in line with the Linux runner by installing the build dependencies in its own step, "Install FreeBSD Dependencies". Before installing dependencies, the runner now updates the preinstalled packages in the VM via pkg upgrade -y. This ensures that the whole VM is cohesively up-to-date. Last but not least, the TARGET_PRESET environment variable must be set in the "Build: FreeBSD" step with the --environment-variables option of cpa.sh, or else it won't be propagated to the build environment.