Update Makefile #397
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=0", "EXFAT=1", "EXFAT=1 MX4SIO=1"] | |
ds34: ["DS34=0", "DS34=1"] | |
coh: ["COH=0", "COH=1"] | |
runs-on: ubuntu-latest | |
container: ps2dev/ps2dev:v1.0 | |
steps: | |
- name: Install dependencies | |
run: | | |
apk add make git zip | |
- name: Install 7zip | |
if: matrix.coh == 'COH=1' | |
run: | | |
apk add p7zip | |
- uses: actions/checkout@v3 | |
- run: | | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
git fetch --prune --unshallow | |
- name: get romimg dependency | |
if: matrix.coh == 'COH=1' | |
run: | | |
wget https://github.com/israpps/ROMIMG/releases/download/Latest/ROMIMG-linux-x86.7z -O ROMIMG.7z | |
mkdir tools | |
7z e ROMIMG.7z -otools/ * -r | |
rm -f ROMIMG.7z | |
- name: Compile wLaunchELF | |
run: | | |
make rebuild ${{ matrix.coh }} ${{ matrix.eth }} ${{ matrix.sior }} ${{ 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@v3 | |
- run: | | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
git fetch --prune --unshallow | |
- name: Download all artifacts | |
uses: actions/download-artifact@v3 | |
- 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 }}"}' |