more makefile updates
[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 bc 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           .github/build-libretro-zip.sh arm64 CortexA73_G12B
30           .github/build-libretro-zip.sh arm32 rpi1
31           .github/build-libretro-zip.sh arm32 rpi2
32           .github/build-libretro-zip.sh arm32 rpi3
33           .github/build-libretro-zip.sh arm64 rpi3_64
34           .github/build-libretro-zip.sh arm32 rpi4
35           .github/build-libretro-zip.sh arm64 rpi4_64
36           .github/build-libretro-zip.sh arm32 classic_armv7_a7
37           .github/build-libretro-zip.sh arm32 classic_armv8_a35
38           .github/build-libretro-zip.sh arm32 miyoo CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++
39       - uses: "marvinpinto/action-automatic-releases@v1.2.1"
40         with:
41           repo_token: "${{ secrets.GITHUB_TOKEN }}"
42           automatic_release_tag: "libretro-devbuild"
43           prerelease: true
44           title: "Development Build"
45           files: |
46             pcsx_rearmed_libretro_arm64_CortexA73_G12B.zip
47             pcsx_rearmed_libretro_arm32_rpi1.zip
48             pcsx_rearmed_libretro_arm32_rpi2.zip
49             pcsx_rearmed_libretro_arm32_rpi3.zip
50             pcsx_rearmed_libretro_arm64_rpi3_64.zip
51             pcsx_rearmed_libretro_arm32_rpi4.zip
52             pcsx_rearmed_libretro_arm64_rpi4_64.zip
53             pcsx_rearmed_libretro_arm32_classic_armv7_a7.zip
54             pcsx_rearmed_libretro_arm32_classic_armv8_a35.zip
55             pcsx_rearmed_libretro_arm32_miyoo.zip