Edited docker file

This commit is contained in:
YohannDR 2022-07-02 19:03:59 +02:00
parent 454d17a6f4
commit 77af3f3853
3 changed files with 23 additions and 6 deletions

View File

@ -5,12 +5,18 @@ RUN apt-get update -y && \
# Install dependencies needed
RUN apt-get install -y --no-install-recommends \
binutils-arm-none-eabi \
build-essential \
ca-certificates \
clang-format \
git \
make
binutils-arm-none-eabi \
build-essential \
ca-certificates \
clang-format \
git \
make
# Install dotnet
RUN apt-get update; \
apt-get install -y apt-transport-https && \
apt-get update && \
apt-get install -y dotnet-sdk-6.0
# Build agbcc
RUN git clone https://github.com/pret/agbcc /opt/agbcc
@ -18,5 +24,13 @@ WORKDIR /opt/agbcc
RUN git checkout faa413e # version from 2022-01-26
RUN ./build.sh
# Download and build extractor
RUN git clone https://github.com/YohannDR/MZM-Extractor /opt/MZM-Extractor
WORKDIR /opt/MZM-Extractor/MZM-Extractor/MZM-Extractor
# Compile
RUN dotnet publish -c release --self-contained --runtime linux-x64 --framework net6.0
# Copy to repo
RUN cp -r bin/release/net6.0/linux-x64/publish ../../../mzm/MZM-Extractor
# Add agbcc to PATH
ENV PATH="/opt/agbcc:${PATH}"

View File

@ -9,6 +9,7 @@ task:
- git clone https://${GITHUB_USER}:${GITHUB_PAT}@github.com/${BASEROM_REPO}.git /tmp/baseroms
- cp /tmp/baseroms/* .
build_script:
- make extract
- make CPP=cpp -j
test_script:
- make check

View File

@ -87,6 +87,8 @@ clean:
$Q$(RM) $(CSRC:.c=.s)
$(MSG) RM $(GBAFIX)
$Q$(RM) $(GBAFIX)
$(MSG) RM data/
$Q$(RM) -r data
.PHONY: help
help: