-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from pcm720/title-list-caching
Title ID caching, QoL improvements
- Loading branch information
Showing
20 changed files
with
766 additions
and
250 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/ps2homebrew/ps2homebrew:main | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Fetch full clone | ||
run: | | ||
git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
git fetch --prune --unshallow | ||
- name: Compile project | ||
id: make | ||
run: | | ||
make | ||
- name: Upload ELF | ||
uses: actions/upload-artifact@v4 | ||
if: steps.make.outcome == 'success' | ||
with: | ||
name: nhddl | ||
path: | | ||
nhddl-*.elf | ||
!nhddl-*_unc.elf | ||
- name: Upload YAML examples | ||
if: steps.make.outcome == 'success' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: examples | ||
path: | | ||
examples/*.yaml | ||
release: | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Fetch full clone | ||
run: | | ||
git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
git fetch --prune --unshallow | ||
- name: Get git describe | ||
run: | | ||
echo "GIT_VERSION=$(git describe --always --dirty --tags --exclude nightly)" >> $GITHUB_ENV | ||
- name: Download all artifacts | ||
uses: actions/download-artifact@v4 | ||
|
||
- name: Prepare release archive | ||
run: | | ||
mv nhddl/nhddl-${{ env.GIT_VERSION }}.elf nhddl.elf | ||
zip -r nhddl-${{ env.GIT_VERSION }}.zip nhddl.elf examples | ||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: "nightly" | ||
prerelease: true | ||
title: "Nightly build" | ||
files: | | ||
nhddl-${{ env.GIT_VERSION }}.zip | ||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
draft: true | ||
files: | | ||
nhddl-${{ env.GIT_VERSION }}.zip |
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
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
Oops, something went wrong.