Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI #165

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 54 additions & 54 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,70 +1,70 @@
name: Build package

on: [ push, pull_request, workflow_dispatch ]
on:
push:
pull_request:
workflow_dispatch:

jobs:
build_pkg:
runs-on: ubuntu-20.04
steps:
runs-on: ubuntu-latest

- name: Checkout
uses: actions/checkout@v3
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Checkout dbglogger
uses: actions/checkout@v3
with:
repository: bucanero/dbglogger
path: dbglogger
- name: Checkout dbglogger repository
uses: actions/checkout@v4
with:
repository: bucanero/dbglogger
path: dbglogger

- name: Checkout apollo-lib
uses: actions/checkout@v3
with:
repository: bucanero/apollo-lib
path: apollo-lib
- name: Checkout apollo-lib repository
uses: actions/checkout@v4
with:
repository: bucanero/apollo-lib
path: apollo-lib

- name: Checkout libxmp-lite-ps4
uses: actions/checkout@v3
with:
repository: bucanero/libxmp-lite-ps4
path: libxmp-lite-ps4
- name: Checkout libxmp-lite-ps4 repository
uses: actions/checkout@v4
with:
repository: bucanero/libxmp-lite-ps4
path: libxmp-lite-ps4

- name: Set env vars
id: slug
run: |
echo "sha_name=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV
- name: Set environment variables
id: slug
run: |
echo "sha_name=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV

# using pre-compiled sdk
- name: Download PSL1GHT Toolchain
run: |
curl -sL https://github.com/bucanero/ps3toolchain/releases/download/ubuntu-latest-fad3b5fb/ps3dev-ubuntu-latest-2020-08-31.tar.gz | tar xvz -C ./
echo "PS3DEV=${GITHUB_WORKSPACE}/ps3dev" >> $GITHUB_ENV
echo "PSL1GHT=${GITHUB_WORKSPACE}/ps3dev" >> $GITHUB_ENV
- name: Download PSL1GHT Toolchain
run: |
curl -sL https://github.com/bucanero/ps3toolchain/releases/download/ubuntu-latest-fad3b5fb/ps3dev-ubuntu-latest-2020-08-31.tar.gz | tar xvz -C ./
echo "PS3DEV=${GITHUB_WORKSPACE}/ps3dev" >> $GITHUB_ENV
echo "PSL1GHT=${GITHUB_WORKSPACE}/ps3dev" >> $GITHUB_ENV

- name: Install dbglogger
working-directory: dbglogger
run: |
make install
- name: Install dbglogger
working-directory: dbglogger
run: |
make install

- name: Install apollo-lib
working-directory: apollo-lib
run: |
make install
- name: Install apollo-lib
working-directory: apollo-lib
run: |
make install

- name: Install libxmp-lite
working-directory: libxmp-lite-ps4
run: |
make -f Makefile.ps3 install
- name: Install libxmp-lite
working-directory: libxmp-lite-ps4
run: |
make -f Makefile.ps3 install

- name: Build Apollo App Package
run: |
make createzip
make pkg
- name: Build Apollo package
run: |
make createzip
make pkg

- name: Push package artifact
uses: actions/upload-artifact@v3
with:
name: apollo-ps3-build_${{ env.sha_name }}
path: apollo-ps3.pkg
if-no-files-found: error
# don't keep artifacts for too long
retention-days: 7
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: apollo-ps3-build_${{ env.sha_name }}
path: apollo-ps3.pkg
if-no-files-found: error
Loading