add arcade UART variant #508
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: Automated-Build | |
on: | |
workflow_dispatch: | |
inputs: | |
make_args: | |
description: pass extra make argumments to control features not explicitly handled by CI | |
push: | |
repository_dispatch: | |
types: [run_build] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
eth: ["ETH=0", "ETH=1"] | |
bdmstuff: ["EXFAT=1", "EXFAT=1 MX4SIO=1"] #"EXFAT=0", | |
#ds34: ["DS34=0", "DS34=1"] | |
coh: ["COH=1", "COH=1 ACUART=1"] #"COH=0", | |
exclude: | |
- bdmstuff: "EXFAT=1 MX4SIO=1" | |
coh: "COH=1" | |
runs-on: ubuntu-latest | |
container: ps2dev/ps2dev:v1.0 | |
steps: | |
- name: Install dependencies | |
run: | | |
apk add make git zip | |
- uses: actions/checkout@v4 | |
- run: | | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
git fetch --prune --unshallow | |
- name: Compile wLaunchELF | |
run: | | |
make rebuild SIO_DEBUG=1 ${{ matrix.coh }} ${{ matrix.eth }} ${{ matrix.bdmstuff }} ${{ matrix.ds34 }} ${{ matrix.xfrom }} ${{ github.event.inputs.make_args }} | |
- name: Upload variants artifact ELF | |
uses: actions/upload-artifact@v3 | |
with: | |
name: WLE | |
path: | | |
BOOT*.ELF | |
####################################################### | |
release: | |
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
git fetch --prune --unshallow | |
- name: Download all artifacts | |
uses: actions/download-artifact@v4 | |
- name: list | |
run: | | |
ls -R | |
- name: Create release | |
if: github.ref == 'refs/heads/master' | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
title: "Latest automated build" | |
prerelease: false | |
files: | | |
WLE/*.ELF | |
- name: Create release | |
if: github.ref == 'refs/heads/master' | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "language-files" | |
title: "Translations" | |
files: | | |
Lang/*.LNG | |
trigger-auto-update: | |
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
needs: [release] | |
strategy: | |
matrix: | |
repos: [israpps/FreeMcBoot-Installer, israpps/Funtuna-Fork , israpps/PlayStation2-Basic-BootLoader] | |
steps: | |
- name: trigger israpps auto-update system | |
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' | |
uses: peter-evans/repository-dispatch@v1 | |
with: | |
token: ${{ secrets.IUS }} | |
repository: ${{ matrix.repos }} | |
event-type: Component_update | |
client-payload: '{"sha": "${{ github.sha }}"}' |