forked from baskerville/plato
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore Docker files and GitHub actions
- Loading branch information
1 parent
82886cb
commit f07921b
Showing
6 changed files
with
116 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: armhf | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: (armhf) build image | ||
run: docker build . -f Dockerfile -t plato:armhf | ||
- name: (armhf) build plato | ||
run: docker run --rm plato:armhf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: dev | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: (dev) build image | ||
run: docker build . -f Dockerfile.dev -t plato:dev | ||
- name: (dev) run tests and build all features | ||
run: docker run --rm plato:dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM rust:1.42-buster | ||
|
||
RUN /usr/bin/dpkg --add-architecture armhf | ||
RUN apt-get update && apt-get install -y pkg-config \ | ||
gcc-arm-linux-gnueabihf \ | ||
g++-arm-linux-gnueabihf \ | ||
jq | ||
|
||
RUN rustup target add arm-unknown-linux-gnueabihf | ||
|
||
# Build plato | ||
WORKDIR /plato | ||
|
||
ADD . /plato | ||
|
||
# Plato requires a specific version of the mupdf dev library for src/mupdf_wrapper | ||
RUN cd /plato/thirdparty && ./download.sh mupdf | ||
|
||
CMD ["./build.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM rust:1.42-buster | ||
|
||
RUN apt-get update && apt-get install -y libtool \ | ||
pkg-config \ | ||
jq \ | ||
libdjvulibre-dev \ | ||
libharfbuzz-dev \ | ||
libsdl2-dev \ | ||
# start mupdf dependencies | ||
libjbig2dec0-dev \ | ||
patch | ||
# end mupdf dependencies | ||
|
||
RUN echo "deb http:https://deb.debian.org/debian testing main" > /etc/apt/sources.list \ | ||
&& apt-get update \ | ||
&& apt-get install -y mupdf libmupdf-dev | ||
|
||
# Referenced in build.rs for mupdf_wrapper | ||
ENV CARGO_TARGET_OS=linux | ||
|
||
# Build plato | ||
WORKDIR /plato | ||
|
||
ADD . /plato | ||
|
||
CMD ["bash", "-c", "cd /plato/src/mupdf_wrapper && ./build.sh && cd /plato/ && cargo test && cargo build --all-features"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters