forked from notaz/picodrive
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|