add debug related config and modules #107
Workflow file for this run
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: CI-compile | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: ghcr.io/ps2homebrew/ps2homebrew:main | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Compile | |
run: | | |
make clean all | |
- name: Define target name | |
id: slug | |
run: | | |
echo "TARGET=neutrino-$(date "+%Y%m%d")-${GITHUB_SHA::8}" >> $GITHUB_ENV | |
- name: Pack release | |
run: | | |
TARGET=${{ env.TARGET }} | |
cd ee/loader | |
make copy | |
mkdir $TARGET | |
cp *.elf $TARGET/ | |
cp -r modules/ $TARGET/modules/ | |
cp -r config/ $TARGET/config/ | |
cp ../../README.md $TARGET/ | |
7z a -t7z $TARGET.7z $TARGET/* | |
- name: Upload release as artifact | |
if: ${{ success() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.TARGET }} | |
path: | | |
ee/loader/*.7z | |
- name: Create latest 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 development build" | |
files: | | |
ee/loader/*.7z | |
build-iopcore-debug: | |
runs-on: ubuntu-latest | |
container: ghcr.io/ps2homebrew/ps2homebrew:main | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Compile | |
run: | | |
make clean all IOPCORE_DEBUG=1 | |
- name: Define target name | |
id: slug | |
run: | | |
echo "TARGET=neutrino-IOPCORE_DEBUG-$(date "+%Y%m%d")-${GITHUB_SHA::8}" >> $GITHUB_ENV | |
- name: Pack release | |
run: | | |
TARGET=${{ env.TARGET }} | |
cd ee/loader | |
make copy | |
mkdir $TARGET | |
cp *.elf $TARGET/ | |
cp -r modules/ $TARGET/modules/ | |
cp -r config/ $TARGET/config/ | |
cp ../../README.md $TARGET/ | |
7z a -t7z $TARGET.7z $TARGET/* | |
- name: Upload release as artifact | |
if: ${{ success() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.TARGET }} | |
path: | | |
ee/loader/*.7z | |
build-eesio-debug: | |
runs-on: ubuntu-latest | |
container: ghcr.io/ps2homebrew/ps2homebrew:main | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Compile | |
run: | | |
make clean all EESIO_DEBUG=1 | |
- name: Define target name | |
id: slug | |
run: | | |
echo "TARGET=neutrino-EESIO_DEBUG-$(date "+%Y%m%d")-${GITHUB_SHA::8}" >> $GITHUB_ENV | |
- name: Pack release | |
run: | | |
TARGET=${{ env.TARGET }} | |
cd ee/loader | |
make copy | |
mkdir $TARGET | |
cp *.elf $TARGET/ | |
cp -r modules/ $TARGET/modules/ | |
cp -r config/ $TARGET/config/ | |
cp ../../README.md $TARGET/ | |
7z a -t7z $TARGET.7z $TARGET/* | |
- name: Upload release as artifact | |
if: ${{ success() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.TARGET }} | |
path: | | |
ee/loader/*.7z | |
build-debug: | |
runs-on: ubuntu-latest | |
container: ghcr.io/ps2homebrew/ps2homebrew:main | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Compile | |
run: | | |
make clean all IOPCORE_DEBUG=1 EESIO_DEBUG=1 | |
- name: Define target name | |
id: slug | |
run: | | |
echo "TARGET=neutrino-debug-$(date "+%Y%m%d")-${GITHUB_SHA::8}" >> $GITHUB_ENV | |
- name: Pack release | |
run: | | |
TARGET=${{ env.TARGET }} | |
cd ee/loader | |
make copy | |
mkdir $TARGET | |
cp *.elf $TARGET/ | |
cp -r modules/ $TARGET/modules/ | |
cp -r config/ $TARGET/config/ | |
cp ../../README.md $TARGET/ | |
7z a -t7z $TARGET.7z $TARGET/* | |
- name: Upload release as artifact | |
if: ${{ success() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.TARGET }} | |
path: | | |
ee/loader/*.7z |