Skip to content

Commit 07cc0b3

Browse files
committed
Include built IDO binaries in dpdecomp Docker image
Avoids requring CI to recompile every time
1 parent 4510848 commit 07cc0b3

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
uses: actions/checkout@v2
1818
with:
1919
submodules: recursive
20+
- name: Symlink IDO binaries
21+
run: ln -s /dino/tools/ido_static_recomp/build ./tools/ido_static_recomp/build
2022
- name: Checkout baserom
2123
uses: actions/checkout@v2
2224
with:

Dockerfile

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:24.04
1+
FROM ubuntu:24.04 AS base
22

33
# Create directory for mount
44
RUN mkdir /dino
@@ -17,6 +17,21 @@ RUN pip3 install -r requirements.txt --break-system-packages
1717
# Symlink dino.py
1818
RUN ln -s /dino/dino.py /usr/local/bin/dino
1919

20+
21+
FROM base AS ido
22+
23+
# Compile IDO recomp
24+
ADD tools/ido_static_recomp ./tools/ido_static_recomp
25+
RUN make -C tools/ido_static_recomp setup && \
26+
make -C tools/ido_static_recomp VERSION=5.3 RELEASE=1 -j && \
27+
make -C tools/ido_static_recomp VERSION=7.1 RELEASE=1 -j
28+
29+
30+
FROM base
31+
32+
# Copy IDO binaries
33+
COPY --from=ido /dino/tools/ido_static_recomp/build /dino/tools/ido_static_recomp/build
34+
2035
# Set up user (if they don't exist)
2136
ARG login=sabre
2237
ARG uid=1001

0 commit comments

Comments
 (0)