Skip to content

add DONGLEMAN module #1199

add DONGLEMAN module

add DONGLEMAN module #1199

Workflow file for this run

name: CI
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
jobs:
build:
strategy:
matrix:
debug: [all, debug]
runs-on: ubuntu-latest
container: ps2dev/ps2toolchain:latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
apk add build-base git bash
- name: Compile project ${{ matrix.debug }}
run: |
make -j $(getconf _NPROCESSORS_ONLN) clean
make -j $(getconf _NPROCESSORS_ONLN) ${{ matrix.debug }}
make -j $(getconf _NPROCESSORS_ONLN) install
ln -sf "$PS2SDK/ee/lib/libcglue.a" "$PS2DEV/ee/mips64r5900el-ps2-elf/lib/libcglue.a"
ln -sf "$PS2SDK/ee/lib/libpthreadglue.a" "$PS2DEV/ee/mips64r5900el-ps2-elf/lib/libpthreadglue.a"
ln -sf "$PS2SDK/ee/lib/libkernel.a" "$PS2DEV/ee/mips64r5900el-ps2-elf/lib/libkernel.a"
ln -sf "$PS2SDK/ee/lib/libcdvd.a" "$PS2DEV/ee/mips64r5900el-ps2-elf/lib/libcdvd.a"
- name: Compile samples
if: ${{ success() }}
run: |
cp -rv $PS2SDK/samples ~/
make -C ~/samples
- name: Get short SHA
id: slug
run: printf '%s\n' "sha8=$(printf '%s\n' ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v3
with:
name: ps2sdk-samples-${{ matrix.debug }}-${{ steps.slug.outputs.sha8 }}
path: ~/samples