Skip to content

Commit

Permalink
try automatic builds
Browse files Browse the repository at this point in the history
  • Loading branch information
notaz committed Oct 17, 2023
1 parent 8cba0a2 commit a6ca408
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/build-libretro-zip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
set -e

if [[ $# -ne 2 ]]; then
echo "usage: $0 <arch> <platform>"
exit 1
fi

if [[ $1 = "arm32" ]]; then
export CC=arm-linux-gnueabihf-gcc
export LD=arm-linux-gnueabihf-ld
aname=arm32
elif [[ $1 = "arm64" ]]; then
export CC=aarch64-linux-gnu-gcc
export LD=aarch64-linux-gnu-ld
aname=arm64
else
echo "unsupported platform $1"
exit 1
fi

make -f Makefile.libretro platform=$2
zip -9 "pcsx_rearmed_libretro_${aname}_${2}.zip" pcsx_rearmed_libretro.so
make -f Makefile.libretro platform=$2 clean
52 changes: 52 additions & 0 deletions .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "pre-release"

on:
push:
branches:
- "libretro_build"

jobs:
pre-release:
name: "Pre Release"
runs-on: "ubuntu-20.04"

steps:
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y make git sed zip
#sudo apt-get install -y gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
#sudo apt-get install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross
- uses: actions/checkout@v2
- name: Build
run: |
# use the actual libretro git hash as libretro_build is always rebased
#sed -i -e "s/\<HEAD\>/HEAD^/" Makefile.libretro
grep HEAD Makefile.libretro
.github/build-libretro-zip.sh arm64 CortexA73_G12B
.github/build-libretro-zip.sh arm32 rpi1
.github/build-libretro-zip.sh arm32 rpi2
.github/build-libretro-zip.sh arm32 rpi3
.github/build-libretro-zip.sh arm64 rpi3_64
.github/build-libretro-zip.sh arm32 rpi4
.github/build-libretro-zip.sh arm64 rpi4_64
.github/build-libretro-zip.sh arm32 classic_armv7_a7
.github/build-libretro-zip.sh arm32 classic_armv8_a35
.github/build-libretro-zip.sh arm32 miyoo
- uses: "marvinpinto/action-automatic-releases@v1.2.1"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "libretro-devbuild"
prerelease: true
title: "Development Build"
files: |
pcsx_rearmed_libretro_arm64_CortexA73_G12B.zip
pcsx_rearmed_libretro_arm32_rpi1.zip
pcsx_rearmed_libretro_arm32_rpi2.zip
pcsx_rearmed_libretro_arm32_rpi3.zip
pcsx_rearmed_libretro_arm64_rpi3_64.zip
pcsx_rearmed_libretro_arm32_rpi4.zip
pcsx_rearmed_libretro_arm64_rpi4_64.zip
pcsx_rearmed_libretro_arm32_classic_armv7_a7.zip
pcsx_rearmed_libretro_arm32_classic_armv8_a35.zip
pcsx_rearmed_libretro_arm32_miyoo.zip

0 comments on commit a6ca408

Please sign in to comment.