mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-04 09:08:30 +00:00
Merge pull request #38 from pspdev/ci
Add docker-based compilation actions
This commit is contained in:
26
.github/workflows/compilation.yml
vendored
Normal file
26
.github/workflows/compilation.yml
vendored
Normal 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
24
.github/workflows/docker.yml
vendored
Normal 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
15
Dockerfile
Normal 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}
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user