mirror of
https://github.com/Maschell/libgui-sdl.git
synced 2025-02-20 02:02:41 +01:00
[Wii U] Push lib as docker image
This commit is contained in:
parent
9dd4d62da1
commit
4d990efffa
26
.github/workflows/push_image.yml
vendored
Normal file
26
.github/workflows/push_image.yml
vendored
Normal 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 }}"
|
@ -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
|
||||
|
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user