diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml new file mode 100644 index 00000000..a4e73f2d --- /dev/null +++ b/.github/workflows/compilation.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + pull_request: + repository_dispatch: + types: [run_build] + +jobs: + build: + runs-on: ubuntu-latest + container: pspdev/psptoolchain:latest + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies + run: | + apk add build-base autoconf automake zlib-dev + + - name: Compile PSPSDK + run: | + ./bootstrap + ./configure + make clean + make -j2 + make install diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 00000000..470c9eb4 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,24 @@ +name: CI-Docker + +on: + push: + branches: + - master + repository_dispatch: + types: [run_build] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: docker/build-push-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + repository: ${{ env.GITHUB_REPOSITORY }} + tags: latest + tag_with_ref: true + add_git_labels: true diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..fedcd0b8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +# First stage +FROM pspdev/psptoolchain:latest + +COPY . /src + +RUN apk add build-base autoconf automake zlib-dev +RUN cd /src && ./bootstrap && ./configure && make all install clean + +# Second stage +FROM alpine:latest + +ENV PSPDEV /usr/local/pspdev +ENV PATH $PATH:${PSPDEV}/bin + +COPY --from=0 ${PSPDEV} ${PSPDEV} diff --git a/README.md b/README.md index ebbe4a13..1db2197f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# PSP Software Development Kit +# PSP Software Development Kit ![CI][ci-badge] Version 1.0+beta2 - https://github.com/pspdev/pspsdk @@ -187,3 +187,6 @@ The pspsdk developers wish to thank all the people who have contributed bug fixes, ideas and support for the project. Also big thanks to nem for kicking off PSP development with all his work, the original imports system is based on his work in the hello world demo. + + +[ci-badge]: https://github.com/pspdev/pspsdk/workflows/CI/badge.svg