Skip to content

Commit 9e48d33

Browse files
committed
Merge branch 'main' into wine-b-gone
2 parents 4001fc4 + 030cdce commit 9e48d33

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+4084
-3275
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ GITHUB_CLIENT_ID=
88
GITHUB_CLIENT_SECRET=
99
FRONTEND_USE_IMAGE_PROXY=true
1010
FRONTEND_PWA=off
11+
SESSION_COOKIE_AGE=7776000

.github/workflows/ci.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ on:
77
jobs:
88
full_test_and_build:
99
name: full test and build
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313

1414
- name: Install poetry
1515
run: pipx install poetry
@@ -26,7 +26,7 @@ jobs:
2626
sudo dpkg --add-architecture i386
2727
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
2828
sudo apt-get update -qq
29-
sudo apt-get purge -yqq libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
29+
sudo apt-get install -yqq --allow-downgrades libc6:i386 libgcc-s1:i386 libstdc++6:i386 wine
3030
3131
sudo apt-get install \
3232
ca-certificates \
@@ -45,17 +45,22 @@ jobs:
4545
binutils-aarch64-linux-gnu \
4646
binutils-mips-linux-gnu \
4747
binutils-powerpc-linux-gnu \
48+
binutils-sh-elf \
4849
dos2unix \
4950
libprotobuf-dev \
5051
libnl-route-3-dev \
5152
libncurses5 \
52-
protobuf-compiler \
53-
wine
53+
protobuf-compiler
5454
- name: Install apt dependencies (cached)
5555
uses: awalsh128/cache-apt-pkgs-action@v1
5656
with:
57-
packages: docker-ce docker-ce-cli containerd.io docker-compose-plugin binutils-aarch64-linux-gnu binutils-mips-linux-gnu binutils-powerpc-linux-gnu dos2unix libprotobuf-dev libnl-route-3-dev libncurses5 protobuf-compiler wine
57+
packages: docker-ce docker-ce-cli containerd.io docker-compose-plugin binutils-aarch64-linux-gnu binutils-mips-linux-gnu binutils-powerpc-linux-gnu binutils-sh-elf dos2unix libprotobuf-dev libnl-route-3-dev libncurses5 protobuf-compiler wine software-properties-common
5858
version: 1.0
59+
- name: Install DOSEMU
60+
run: |-
61+
sudo add-apt-repository -y ppa:dosemu2/ppa
62+
sudo apt-get update
63+
sudo apt-get install -y dosemu2
5964
- name: Install nsjail
6065
run: |-
6166
git clone --recursive --branch=3.1 https://github.com/google/nsjail
@@ -127,7 +132,7 @@ jobs:
127132
run:
128133
shell: bash
129134
steps:
130-
- uses: actions/checkout@v2
135+
- uses: actions/checkout@v3
131136
- name: Install poetry
132137
run: pipx install poetry
133138
- name: Setup Python 3.9
@@ -151,13 +156,14 @@ jobs:
151156
name: backend tests (docker)
152157
runs-on: ubuntu-latest
153158
steps:
154-
- uses: actions/checkout@v2
159+
- uses: actions/checkout@v3
155160
- name: Build decompme_backend image
156161
run: |-
157162
docker build backend \
158163
-t decompme_backend \
159164
--build-arg ENABLE_WII_GC_SUPPORT=YES \
160-
--build-arg ENABLE_PS1_SUPPORT=YES
165+
--build-arg ENABLE_PS1_SUPPORT=YES \
166+
--build-arg ENABLE_SATURN_SUPPORT=YES
161167
- name: Run tests
162168
run: |-
163169
mkdir -p sandbox && chmod 777 sandbox
@@ -182,7 +188,7 @@ jobs:
182188
name: eslint & stylelint
183189
runs-on: ubuntu-latest
184190
steps:
185-
- uses: actions/checkout@v2
191+
- uses: actions/checkout@v3
186192
- name: Setup Node.js 18
187193
uses: actions/setup-node@v3
188194
with:
@@ -197,7 +203,7 @@ jobs:
197203
name: mypy
198204
runs-on: ubuntu-latest
199205
steps:
200-
- uses: actions/checkout@v2
206+
- uses: actions/checkout@v3
201207
- name: Install poetry
202208
run: pipx install poetry
203209
- name: Setup Python 3.9
@@ -215,7 +221,7 @@ jobs:
215221
name: black
216222
runs-on: ubuntu-latest
217223
steps:
218-
- uses: actions/checkout@v2
224+
- uses: actions/checkout@v3
219225
- uses: psf/black@stable
220226
with:
221227
src: "./backend"

backend/Dockerfile

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
FROM ubuntu:20.04 as base
1+
FROM ubuntu:22.04 as base
22

33
ENV DEBIAN_FRONTEND=noninteractive
44

55
RUN apt-get update && apt-get install -y \
66
python3-pip \
77
python3 \
88
python-is-python3 \
9-
python3.9-venv \
10-
python3.9-dev
9+
python3.10-venv \
10+
python3.10-dev
1111

1212

1313
FROM base AS nsjail
@@ -37,6 +37,7 @@ RUN apt-get -y update && apt-get install -y \
3737
binutils-mips-linux-gnu \
3838
binutils-powerpc-linux-gnu \
3939
binutils-aarch64-linux-gnu \
40+
binutils-sh-elf \
4041
curl \
4142
gcc-mips-linux-gnu \
4243
git \
@@ -50,7 +51,7 @@ RUN apt-get -y update && apt-get install -y \
5051
&& rm -rf /var/lib/apt/lists/*
5152

5253
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | \
53-
POETRY_VERSION=1.3.1 POETRY_HOME=/etc/poetry python3.9 -
54+
POETRY_VERSION=1.3.1 POETRY_HOME=/etc/poetry python3.10 -
5455

5556
COPY --from=nsjail /nsjail/nsjail /bin/nsjail
5657

@@ -60,6 +61,7 @@ COPY --from=ghcr.io/decompals/wibo:0.4.1 /usr/local/sbin/wibo /usr/bin/
6061
ARG ENABLE_NDS_SUPPORT
6162
ARG ENABLE_PS1_SUPPORT
6263
ARG ENABLE_WII_GC_SUPPORT
64+
ARG ENABLE_SATURN_SUPPORT
6365
RUN if [ "${ENABLE_NDS_SUPPORT}" = "YES" ] || \
6466
[ "${ENABLE_PS1_SUPPORT}" = "YES" ] || \
6567
[ "${ENABLE_WII_GC_SUPPORT}" = "YES" ]; then \
@@ -68,9 +70,15 @@ RUN if [ "${ENABLE_NDS_SUPPORT}" = "YES" ] || \
6870
wine; \
6971
fi
7072

71-
# ps1 specifics
72-
RUN if [ "${ENABLE_PS1_SUPPORT}" = "YES" ] ; then \
73-
apt-get install -y dos2unix; \
73+
# install dos2unix and dosemu2 for ps1 and saturn
74+
RUN if [ "${ENABLE_PS1_SUPPORT}" = "YES" ] || \
75+
[ "${ENABLE_SATURN_SUPPORT}" = "YES" ]; then \
76+
apt-get update && \
77+
apt-get install -y -o APT::Immediate-Configure=false \
78+
dos2unix software-properties-common && \
79+
add-apt-repository -y ppa:dosemu2/ppa && \
80+
apt-get update && \
81+
apt-get install -y dosemu2; \
7482
fi
7583

7684
# gc/wii specifics
@@ -92,9 +100,10 @@ ENV ENABLE_N64_SUPPORT=${ENABLE_N64_SUPPORT}
92100
ENV ENABLE_NDS_SUPPORT=${ENABLE_NDS_SUPPORT}
93101
ENV ENABLE_PS1_SUPPORT=${ENABLE_PS1_SUPPORT}
94102
ENV ENABLE_SWITCH_SUPPORT=${ENABLE_SWITCH_SUPPORT}
103+
ENV ENABLE_SATURN_SUPPORT=${ENABLE_SATURN_SUPPORT}
95104

96-
RUN python3.9 -m pip install requests tqdm \
97-
&& python3.9 /compilers/download.py \
105+
RUN python3.10 -m pip install requests tqdm \
106+
&& python3.10 /compilers/download.py \
98107
&& rm -rf /compilers/download_cache/
99108

100109
RUN mkdir -p /etc/fonts

0 commit comments

Comments
 (0)