try automatic libretro builds
[pcsx_rearmed.git] / .github / workflows / dev-release.yml
1 name: "pre-release"
2
3 # this is intended to trigger on notaz/pcsx_rearmed libretro push
4 # and do nothing on libretro/pcsx_rearmed master push
5 on:
6   push:
7     branches:
8       - "libretro"
9
10 jobs:
11   pre-release:
12     name: "Pre Release"
13     runs-on: "ubuntu-20.04"
14
15     steps:
16       - name: Install dependencies
17         run: |
18           sudo apt-get update -qq
19           sudo apt-get install -y make git sed zip
20           sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf libc6-dev-armhf-cross
21           sudo apt-get install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross
22       - uses: actions/checkout@v4
23         with:
24           fetch-depth: 2
25       - name: Build
26         env:
27           MAKEFLAGS: -j$(nproc)
28         run: |
29           GITVER=`git rev-parse --short libretro`
30           .github/build-libretro-zip.sh arm64 CortexA73_G12B GIT_VERSION=${GITVER}
31           .github/build-libretro-zip.sh arm32 rpi1    GIT_VERSION=${GITVER}
32           .github/build-libretro-zip.sh arm32 rpi2    GIT_VERSION=${GITVER}
33           .github/build-libretro-zip.sh arm32 rpi3    GIT_VERSION=${GITVER}
34           .github/build-libretro-zip.sh arm64 rpi3_64 GIT_VERSION=${GITVER}
35           .github/build-libretro-zip.sh arm32 rpi4    GIT_VERSION=${GITVER}
36           .github/build-libretro-zip.sh arm64 rpi4_64 GIT_VERSION=${GITVER}
37           .github/build-libretro-zip.sh arm32 classic_armv7_a7  GIT_VERSION=${GITVER}
38           .github/build-libretro-zip.sh arm32 classic_armv8_a35 GIT_VERSION=${GITVER}
39           #.github/build-libretro-zip.sh arm32 miyoo   GIT_VERSION=${GITVER}
40       - uses: "marvinpinto/action-automatic-releases@v1.2.1"
41         with:
42           repo_token: "${{ secrets.GITHUB_TOKEN }}"
43           automatic_release_tag: "libretro-devbuild"
44           prerelease: true
45           title: "Development Build"
46           files: |
47             pcsx_rearmed_libretro_arm64_CortexA73_G12B.zip
48             pcsx_rearmed_libretro_arm32_rpi1.zip
49             pcsx_rearmed_libretro_arm32_rpi2.zip
50             pcsx_rearmed_libretro_arm32_rpi3.zip
51             pcsx_rearmed_libretro_arm64_rpi3_64.zip
52             pcsx_rearmed_libretro_arm32_rpi4.zip
53             pcsx_rearmed_libretro_arm64_rpi4_64.zip
54             pcsx_rearmed_libretro_arm32_classic_armv7_a7.zip
55             pcsx_rearmed_libretro_arm32_classic_armv8_a35.zip