Skip to content

Commit

Permalink
Merge branch 'master' into patch-15
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps authored Jul 19, 2024
2 parents a8ca852 + d0d9f26 commit e36179a
Show file tree
Hide file tree
Showing 127 changed files with 5,139 additions and 2,784 deletions.
3 changes: 2 additions & 1 deletion .clang-format-ignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
./modules/network/lwnbdsvr/nbd-protocol.h
./modules/isofs/lz4.c
./modules/isofs/lz4.h
./modules/network/lwNBD
./thirdparty/clang-format-lint-action
88 changes: 42 additions & 46 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,15 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container: ps2dev/ps2dev:latest
container: ghcr.io/ps2homebrew/ps2homebrew:main
steps:
- name: Install dependencies
run: |
apk add build-base git zip gawk python3 py3-pip bash
- name: git checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git fetch --prune --unshallow
- name: Install Python packages
run: pip3 install -r requirements.txt

- name: Compile -> make clean release
run: make --trace clean release

Expand All @@ -34,15 +27,15 @@ jobs:

- name: Upload release artifact ELF
if: ${{ success() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OPNPS2LD
path: |
OPNPS2LD-*.ELF
- name: Upload release artifact info
if: ${{ success() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: INFO
path: |
Expand All @@ -60,21 +53,15 @@ jobs:
igs: [IGS=0, IGS=1]
t10k: [DTL_T10000=0, DTL_T10000=1]
runs-on: ubuntu-latest
container: ps2dev/ps2dev:latest
container: ghcr.io/ps2homebrew/ps2homebrew:main
steps:
- name: Install dependencies
run: apk add build-base git zip gawk python3 py3-pip bash

- name: git checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git fetch --prune --unshallow
- name: Install Python packages
run: pip3 install -r requirements.txt

- name: Get version
run: |
echo "OPL_VERSION=$(make oplversion)" >> $GITHUB_ENV
Expand All @@ -88,29 +75,33 @@ jobs:
run: sh ./make_changelog.sh

- name: Upload variants artifact ELF
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OPNPS2LD-VARIANTS
name: OPNPS2LD-VARIANTS ${{ matrix.t10k }} ${{ matrix.igs }} ${{ matrix.pademu }} ${{ matrix.rtl }}
path: OPNPS2LD*.ELF

build-lang:
merge-variants:
runs-on: ubuntu-latest
container: ps2dev/ps2dev:latest
needs: build-variants
steps:
- name: Install dependencies
run: |
apk add build-base git zip gawk python3 py3-pip bash
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: OPNPS2LD-VARIANTS
pattern: OPNPS2LD-VARIANTS*
delete-merged: true

build-lang:
runs-on: ubuntu-latest
container: ghcr.io/ps2homebrew/ps2homebrew:main
steps:
- name: git checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git fetch --prune --unshallow
- name: Install Python packages
run: pip3 install -r requirements.txt

- name: Compile -> make download_lng languages
run: make --trace download_lng languages

Expand All @@ -119,7 +110,7 @@ jobs:

- name: Upload release artifact
if: ${{ success() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OPNPS2LD-LANGS
path: |
Expand All @@ -129,23 +120,17 @@ jobs:
strategy:
fail-fast: false
matrix:
debug: [debug, iopcore_debug, ingame_debug, deci2_debug] # eesio_debug broken
debug: [debug, iopcore_debug, ingame_debug, deci2_debug, eesio_debug]
runs-on: ubuntu-latest
container: ps2dev/ps2dev:latest
container: ghcr.io/ps2homebrew/ps2homebrew:main
steps:
- name: Install dependencies
run: apk add build-base git zip gawk python3 py3-pip bash

- name: git checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git fetch --prune --unshallow
- name: Install Python packages
run: pip3 install -r requirements.txt

- name: Get version
run: |
echo "OPL_VERSION=$(make oplversion)" >> $GITHUB_ENV
Expand All @@ -156,11 +141,22 @@ jobs:
mv opl.elf opl-${{ matrix.debug }}.elf
- name: Upload variants artifact ELF
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: opl-debug-${{ env.OPL_VERSION }}
name: opl-${{ matrix.debug }}-${{ env.OPL_VERSION }}
path: opl-*.elf

merge-debug:
runs-on: ubuntu-latest
needs: build-debug
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: OPNPS2LD-DEBUG
pattern: opl-*
delete-merged: true

release:
needs: [build, build-variants, build-debug, build-lang]
runs-on: ubuntu-latest
Expand All @@ -170,7 +166,7 @@ jobs:
PASSWORD: ${{ secrets.PASSWORD }}
steps:
- name: git checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- run: git fetch --prune --unshallow

Expand All @@ -179,7 +175,7 @@ jobs:
echo "OPL_VERSION=$(make oplversion)" >> $GITHUB_ENV
- name: Download all artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Prepare artifacts for release
run: |
Expand All @@ -196,7 +192,7 @@ jobs:
- name: Create prerelease
if: github.ref == 'refs/heads/master'
uses: marvinpinto/action-automatic-releases@latest
uses: mathieucarbou/marvinpinto-action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
Expand All @@ -212,7 +208,7 @@ jobs:
- name: Create release
if: startsWith(github.ref, 'refs/tags/v')
uses: marvinpinto/action-automatic-releases@latest
uses: mathieucarbou/marvinpinto-action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: "${{ contains(github.ref, '-rc') }}"
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ DETAILED_CHANGELOG
#
pc/iso2usbld/bin/iso2usbld
IOPRP_img.c
asm/*.c

#
# 3rd party
#
*modules/network/lwNBD
*thirdparty/clang-format-lint-action

# language
lng/lang_*.lng
Expand Down
Loading

0 comments on commit e36179a

Please sign in to comment.