Merge pull request #38 from pspdev/ci

Add docker-based compilation actions
This commit is contained in:
Carsten Teibes
2020-06-22 23:59:57 +02:00
committed by GitHub
4 changed files with 69 additions and 1 deletions

26
.github/workflows/compilation.yml vendored Normal file
View File

@@ -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

24
.github/workflows/docker.yml vendored Normal file
View File

@@ -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

15
Dockerfile Normal file
View File

@@ -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}

View File

@@ -1,4 +1,4 @@
# PSP Software Development Kit # PSP Software Development Kit ![CI][ci-badge]
Version 1.0+beta2 - https://github.com/pspdev/pspsdk 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 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 PSP development with all his work, the original imports system is based on his
work in the hello world demo. work in the hello world demo.
[ci-badge]: https://github.com/pspdev/pspsdk/workflows/CI/badge.svg