From 4d990efffa62654e57f37a6f352279d87d2bced7 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 2 Oct 2020 21:04:34 +0200 Subject: [PATCH] [Wii U] Push lib as docker image --- .github/workflows/push_image.yml | 26 ++++++++++++++++++++++++++ Dockerfile.wiiu | 2 +- README.md | 5 ++--- 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/push_image.yml diff --git a/.github/workflows/push_image.yml b/.github/workflows/push_image.yml new file mode 100644 index 0000000..0e26a34 --- /dev/null +++ b/.github/workflows/push_image.yml @@ -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 }}" \ No newline at end of file diff --git a/Dockerfile.wiiu b/Dockerfile.wiiu index b142c48..993b575 100644 --- a/Dockerfile.wiiu +++ b/Dockerfile.wiiu @@ -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 diff --git a/README.md b/README.md index 7a529a7..c1d0c4e 100644 --- a/README.md +++ b/README.md @@ -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`