Skip to content

Commit

Permalink
FPGA CI: Always use latest GHA runner version.
Browse files Browse the repository at this point in the history
  • Loading branch information
korran committed Oct 17, 2023
1 parent c2fa97d commit 59635e6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ci-tools/fpga-image/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ if [[ -z "${SKIP_DEBOOTSTRAP}" ]]; then
# Comment this line out if you don't trust folks with physical access to the
# uart
# chroot out/rootfs bash -c 'echo root:password | chpasswd'
#

echo Retrieving latest GHA runner version
RUNNER_VERSION="$(curl https://api.github.com/repos/actions/runner/releases/latest | jq -r '.tag_name[1:]')"
echo Using runner version ${RUNNER_VERSION}
trap - EXIT
(cd out/rootfs/home/runner && curl -O -L https://github.com/actions/runner/releases/download/v2.308.0/actions-runner-linux-arm64-2.308.0.tar.gz)
chroot out/rootfs bash -c 'su runner -c "cd /home/runner && tar xvzf actions-runner-linux-arm64-2.308.0.tar.gz && rm -f actions-runner-linux-arm64-2.308.0.tar.gz"'
(cd out/rootfs/home/runner && curl -O -L "https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-arm64-${RUNNER_VERSION}.tar.gz")
chroot out/rootfs bash -c 'su runner -c "cd /home/runner && tar xvzf actions-runner-linux-arm64-${RUNNER_VERSION}.tar.gz && rm -f actions-runner-linux-arm64-${RUNNER_VERSION}.tar.gz"'
fi

chroot out/rootfs bash -c 'echo ::1 caliptra-fpga >> /etc/hosts'
Expand Down

0 comments on commit 59635e6

Please sign in to comment.