Add github action with basic CI that builds

Signed-off-by: Daniel Lublin <daniel@lublin.se>
This commit is contained in:
Daniel Lublin 2023-02-02 21:27:21 +01:00
parent b7d0698e1b
commit 9a6a790715
No known key found for this signature in database
GPG key ID: 75BD0FEB8D3E7830
6 changed files with 152 additions and 5 deletions

View file

@ -7,6 +7,7 @@ RUN apt-get -qq update -y \
build-essential \
ca-certificates \
clang \
clang-format \
cmake \
flex \
gawk \
@ -42,7 +43,7 @@ RUN apt-get -qq update -y \
&& rm -rf /var/lib/apt/lists/*
FROM base as builder
FROM base as toolsbuilder
RUN git clone --depth=1 https://github.com/YosysHQ/icestorm /src
WORKDIR /src
@ -85,4 +86,5 @@ RUN rm -rf /src
FROM base
COPY --from=builder /usr/local/ /usr/local
LABEL org.opencontainers.image.description="Toolchain for building TKey FPGA bitstream, firmware, apps"
COPY --from=toolsbuilder /usr/local/ /usr/local