Removed libretro riscv builds for now #69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: RasberryPi | |
on: | |
push: | |
branches: [ "develop", "edge", "release" ] | |
pull_request: | |
branches: [ "develop" ] | |
workflow_dispatch: | |
env: | |
VXT_VERSION: 1.2.0 | |
jobs: | |
rpi-build: | |
name: RasberryPi | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Inject slug/short variables | |
uses: rlespinasse/github-slug-action@v3.x | |
- name: Setup | |
run: | | |
sudo apt-get update | |
sudo apt-get install cppcheck | |
curl -L -o circle.zip https://github.com/virtualxt/circle/archive/refs/heads/develop.zip | |
curl -L -o butler.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default && unzip butler.zip -d butler | |
curl -L -o premake5.tar.gz https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-linux.tar.gz && mkdir premake5 && tar -xf premake5.tar.gz -C premake5 | |
curl -L -o toolchain.tar.xz https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-x86_64-aarch64-none-elf.tar.xz && tar -xf toolchain.tar.xz | |
echo "${GITHUB_WORKSPACE}/butler" >> $GITHUB_PATH | |
echo "${GITHUB_WORKSPACE}/premake5" >> $GITHUB_PATH | |
echo "${GITHUB_WORKSPACE}/arm-gnu-toolchain-13.3.rel1-x86_64-aarch64-none-elf/bin" >> $GITHUB_PATH | |
- name: Test & Check | |
run: | | |
premake5 check | |
premake5 --test gmake | |
make test | |
make clean | |
- name: Build (bootloader) | |
run: | | |
rm -rf "${GITHUB_WORKSPACE}/package" | |
mkdir -p "${GITHUB_WORKSPACE}/package" | |
export CIRCLEHOME="${GITHUB_WORKSPACE}/circle-develop" | |
rm -rf "${CIRCLEHOME}" | |
cd "${GITHUB_WORKSPACE}" | |
unzip circle.zip | |
cd "${CIRCLEHOME}" | |
./configure -r 3 --multicore -p aarch64-none-elf- | |
make -C "${CIRCLEHOME}/boot" | |
cp "${CIRCLEHOME}"/boot/*.dtb "${GITHUB_WORKSPACE}/package" | |
cp "${CIRCLEHOME}"/boot/*.dat "${GITHUB_WORKSPACE}/package" | |
cp "${CIRCLEHOME}"/boot/*.bin "${GITHUB_WORKSPACE}/package" | |
cp "${CIRCLEHOME}"/boot/*.elf "${GITHUB_WORKSPACE}/package" | |
cp "${CIRCLEHOME}/boot/config64.txt" "${GITHUB_WORKSPACE}/package/config.txt" | |
- name: Build (RaspberryPi3) | |
run: | | |
export CIRCLEHOME="${GITHUB_WORKSPACE}/circle-develop" | |
#rm -rf "${CIRCLEHOME}" | |
#cd "${GITHUB_WORKSPACE}" | |
#unzip circle.zip | |
cd "${CIRCLEHOME}" | |
#./configure -r 3 --multicore -p aarch64-none-elf- | |
./makeall | |
make -C "${CIRCLEHOME}/addon/fatfs" | |
make -C "${CIRCLEHOME}/addon/SDCard" | |
#make -C "${GITHUB_WORKSPACE}/front/rpi" clean # Must clean libvxt etc. | |
make -C "${GITHUB_WORKSPACE}/front/rpi" | |
cp "${GITHUB_WORKSPACE}/front/rpi/kernel8.img" "${GITHUB_WORKSPACE}" | |
- name: Build (RaspberryPi4) | |
run: | | |
export CIRCLEHOME="${GITHUB_WORKSPACE}/circle-develop" | |
rm -rf "${CIRCLEHOME}" | |
cd "${GITHUB_WORKSPACE}" | |
unzip circle.zip | |
cd "${CIRCLEHOME}" | |
./configure -r 4 --multicore -p aarch64-none-elf- | |
./makeall | |
make -C "${CIRCLEHOME}/addon/fatfs" | |
make -C "${CIRCLEHOME}/addon/SDCard" | |
make -C "${GITHUB_WORKSPACE}/front/rpi" clean # Must clean libvxt etc. | |
make -C "${GITHUB_WORKSPACE}/front/rpi" | |
cp "${GITHUB_WORKSPACE}/front/rpi/kernel8-rpi4.img" "${GITHUB_WORKSPACE}" | |
- name: Build (RaspberryPi5) | |
run: | | |
export CIRCLEHOME="${GITHUB_WORKSPACE}/circle-develop" | |
rm -rf "${CIRCLEHOME}" | |
cd "${GITHUB_WORKSPACE}" | |
unzip circle.zip | |
cd "${CIRCLEHOME}" | |
./configure -r 5 --multicore -p aarch64-none-elf- | |
./makeall | |
make -C "${CIRCLEHOME}/addon/fatfs" | |
make -C "${CIRCLEHOME}/addon/SDCard" | |
make -C "${GITHUB_WORKSPACE}/front/rpi" clean # Must clean libvxt etc. | |
make -C "${GITHUB_WORKSPACE}/front/rpi" | |
cp "${GITHUB_WORKSPACE}/front/rpi/kernel_2712.img" "${GITHUB_WORKSPACE}" | |
- name: Package | |
run: | | |
export CIRCLEHOME="${GITHUB_WORKSPACE}/circle-develop" | |
./tools/package/itch/package.rasberrypi.sh | |
- name: Deploy | |
env: | |
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }} | |
run: if [[ $GITHUB_REF_NAME =~ ^(edge|release)$ ]]; then ./tools/package/itch/push-rasberrypi.sh; fi |