[Wii U] Push lib as docker image

This commit is contained in:
Maschell 2020-10-02 21:04:34 +02:00
parent 9dd4d62da1
commit 4d990efffa
3 changed files with 29 additions and 4 deletions

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

@ -0,0 +1,26 @@
name: Publish Docker Image (Wii U)
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Get release version
id: get_release_tag
run: |
echo ::set-env name=RELEASE_VERSION::$(echo $(date '+%Y%m%d'))
echo ::set-env name=REPOSITORY_NAME::$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//" | tr '[:upper:]' '[:lower:]')
echo ::set-env name=REPOSITORY_OWNER::$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $1}' | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: ${{ env.REPOSITORY_OWNER }}/${{ env.REPOSITORY_NAME }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: Dockerfile.wiiu
snapshot: true
cache: true
tags: "latest, ${{ env.RELEASE_VERSION }}"

View File

@ -4,7 +4,7 @@ RUN dkp-pacman -Syu && dkp-pacman -S --noconfirm wiiu-sdl2-libs && dkp-pacman -S
WORKDIR tmp_build
COPY . .
RUN make clean && make -j8 && mkdir -p /artifacts/wut/usr && cp -r lib /artifacts/wut/usr && cp -r include /artifacts/wut/usr
RUN make -f Makefile.wiiu clean && make -f Makefile.wiiu -j8 && mkdir -p /artifacts/wut/usr && cp -r lib /artifacts/wut/usr && cp -r include /artifacts/wut/usr
WORKDIR /artifacts
FROM scratch

View File

@ -1,8 +1,7 @@
# libgui-sdl
## Dependencies
To be able to use libgui, you need to install the following dependencies:
## Dependencies (Wii U)
To be able to use libgui-sdl, you need to install the following dependencies:
- [wut](https://github.com/devkitPro/wut/)
- Install the required portlibs and sdl2 via `(dkp-)pacman -Syu wiiu-portlibs wiiu-sdl2-libs`