-
Notifications
You must be signed in to change notification settings - Fork 1
/
Earthfile
31 lines (23 loc) · 912 Bytes
/
Earthfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
VERSION 0.6
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
WORKDIR /code
COPY --if-exists proxy.conf /etc/apt/apt.conf.d/30-proxy
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl build-essential clang fakeroot chrpath dh-exec
code:
COPY --dir include packages src premake5.lua .
check:
ARG PREMAKE=5.0.0-alpha16
FROM +code
RUN curl -L -o premake.deb https://github.com/emergent-design/premake-pkg/releases/download/v$PREMAKE/premake_$PREMAKE-0ubuntu1_amd64.deb \
&& dpkg -i premake.deb
RUN apt-get update && apt-get install -y --no-install-recommends libfreeimage-dev
RUN premake5 gmake && make -j$(nproc)
package:
FROM +code
RUN cd packages && dpkg-buildpackage -b -uc -us
SAVE ARTIFACT libemergent-dev_*.deb libemergent-dev.deb
SAVE ARTIFACT libemergent-dev_*.deb AS LOCAL build/
emergent-all:
BUILD +package