Skip to content

Commit

Permalink
CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
irixxxx committed Sep 16, 2023
1 parent dfc3a5f commit 3bb2d9a
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/Dockerfile-retrofw
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# build container for GP2X

FROM --platform=linux/amd64 ubuntu:22.04

ENV UNPRIVILEGED_USER_GROUPS=sudo

# minimal build environment
RUN apt-get update && \
apt-get -y --no-install-recommends install sudo make vim git-core wget curl zip bzip2 xz-utils gcc g++ libc6-i386 && \
apt-get -y --no-install-recommends install

# toolchain and libraries
RUN wget --no-check-certificate "https://git.libretro.com/libretro-infrastructure/libretro-build-dingux/-/raw/master/toolchain/retrofw-toolchain.2021-11-06.realoc.tar.gz" && \
tar xzCf /opt retrofw-toolchain.2021-11-06.realoc.tar.gz

# toolchain definitions
ENV PATH=/opt/retrofw-toolchain/bin:$PATH
ENV CROSS_COMPILE=mipsel-RetroFW-linux-uclibc
27 changes: 27 additions & 0 deletions .github/workflows/ci-retrofw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI (GCW0)
on: [push, pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: build environment
run: |
whoami
docker build -f .github/workflows/Dockerfile-retrofw -t build-retrofw .
- name: build
run: |
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
dock="docker run -i -v $PWD:/home/picodrive -w /home/picodrive build-retrofw"
$dock sh -c "git config --global --add safe.directory /home/picodrive"
$dock sh -c "CROSS_COMPILE=mipsel-RetroFW-linux-uclibc- ./configure --platform=retrofw"
$dock sh -c "CROSS_COMPILE=mipsel-RetroFW-linux-uclibc- make"
mv PicoDrive.opk PicoDrive-retrofw-$ver.opk
- name: artifacts
uses: actions/upload-artifact@v3
with:
name: build result
path: PicoDrive-retrofw*.opk

0 comments on commit 3bb2d9a

Please sign in to comment.