mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-24 20:45:05 +00:00
Create the CI/CD of PSPSDK:
- Generate PSPSDK docker layer - Generate and expose all the samples binaries (PBP files) - Generate doxygen documentation and upload it to github pages
This commit is contained in:
23
.github/workflows/compilation.yml
vendored
23
.github/workflows/compilation.yml
vendored
@@ -9,7 +9,7 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container: pspdev/psptoolchain:latest
|
||||
container: ghcr.io/fjtrujy/psptoolchain:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
@@ -22,5 +22,24 @@ jobs:
|
||||
./bootstrap
|
||||
./configure
|
||||
make clean
|
||||
make -j2
|
||||
make -j $(getconf _NPROCESSORS_ONLN)
|
||||
make install
|
||||
|
||||
- name: Get short SHA
|
||||
id: slug
|
||||
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
|
||||
|
||||
- name: Compile Examples
|
||||
run: |
|
||||
cd src/samples && make -f Makefile.samples
|
||||
|
||||
- name: Compress Samples folder folder
|
||||
run: |
|
||||
tar -zcvf samples.tar.gz src/samples
|
||||
|
||||
- name: Upload Samples artifacts
|
||||
if: ${{ success() }}
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: samples-${{ steps.slug.outputs.sha8 }}
|
||||
path: samples.tar.gz
|
||||
|
||||
Reference in New Issue
Block a user