aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Chen2020-07-17 11:15:26 +0200
committerGitHub2020-07-17 11:15:26 +0200
commitb7439e6f5517527e217ef6c05f0a00e361bac841 (patch)
tree50a898b3b06beead3c020b59d823ff79781a86b6
parent1ff98c9bf82002a526a1851b05504e1f59361d00 (diff)
parent00463d770fd738749c092829e3b49e4f7d25f75e (diff)
Merge pull request #7 from jaycech3n/ci-action
Ci action
Diffstat (limited to '')
-rw-r--r--.github/isabelle-action/Dockerfile15
-rw-r--r--.github/isabelle-action/entrypoint.sh5
-rw-r--r--.github/workflows/ci.yml2
3 files changed, 14 insertions, 8 deletions
diff --git a/.github/isabelle-action/Dockerfile b/.github/isabelle-action/Dockerfile
index a6caa79..34a4adf 100644
--- a/.github/isabelle-action/Dockerfile
+++ b/.github/isabelle-action/Dockerfile
@@ -3,23 +3,24 @@
FROM ubuntu
SHELL ["/bin/bash", "-c"]
-# Packages
+# Install packages
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update &&\
apt-get install -y curl less libfontconfig1 libgomp1 libwww-perl rlwrap unzip &&\
apt-get clean
-
-# Isabelle
-RUN echo $USER_HOME
+# Set up Isabelle
ADD https://isabelle.in.tum.de/dist/Isabelle2020_linux.tar.gz Isabelle.tar.gz
-RUN ls
RUN tar xzf Isabelle.tar.gz &&\
mv Isabelle2020 Isabelle &&\
- perl -pi -e 's,ISABELLE_HOME_USER=.*,ISABELLE_HOME_USER="\$USER_HOME/.isabelle",g;' Isabelle/etc/settings &&\
+ perl -pi -e 's,ISABELLE_HOME_USER=.*,ISABELLE_HOME_USER="\$HOME/.isabelle",g;' Isabelle/etc/settings &&\
perl -pi -e 's,ISABELLE_LOGIC=.*,ISABELLE_LOGIC=Pure,g;' Isabelle/etc/settings &&\
Isabelle/bin/isabelle build -o system_heaps -b Pure &&\
rm Isabelle.tar.gz
-ENTRYPOINT [ "sh", "-c", "ls" ]
+# Set up entrypoint
+COPY entrypoint.sh /entrypoint.sh
+RUN chmod +x /entrypoint.sh
+
+ENTRYPOINT ["/entrypoint.sh"]
diff --git a/.github/isabelle-action/entrypoint.sh b/.github/isabelle-action/entrypoint.sh
new file mode 100644
index 0000000..954226a
--- /dev/null
+++ b/.github/isabelle-action/entrypoint.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+chmod +x /Isabelle/bin/isabelle
+sh -c "/Isabelle/bin/isabelle $INPUT_TOOL_ARGS"
+
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4b9f617..36b01ec 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -9,5 +9,5 @@ jobs:
- uses: actions/checkout@v1
- uses: ./.github/isabelle-action
with:
- TOOL_ARGS: "build -D ."
+ TOOL_ARGS: "build -D $GITHUB_WORKSPACE"