diff options
-rw-r--r-- | .github/isabelle-action/Dockerfile | 9 | ||||
-rw-r--r-- | .github/isabelle-action/action.yml | 4 | ||||
-rw-r--r-- | .github/workflows/main.yml | 2 |
3 files changed, 8 insertions, 7 deletions
diff --git a/.github/isabelle-action/Dockerfile b/.github/isabelle-action/Dockerfile index 7c9a182..cb379d6 100644 --- a/.github/isabelle-action/Dockerfile +++ b/.github/isabelle-action/Dockerfile @@ -1,15 +1,15 @@ ## Isabelle/Pure on Isabelle2020 -FROM ubuntu-latest +FROM ubuntu SHELL ["/bin/bash", "-c"] -# packages +# 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 -# user +# User RUN useradd -m isabelle && (echo isabelle:isabelle | chpasswd) USER isabelle @@ -23,5 +23,6 @@ RUN tar xzf Isabelle.tar.gz &&\ Isabelle/bin/isabelle build -o system_heaps -b Pure &&\ rm Isabelle.tar.gz -ENTRYPOINT ["Isabelle/bin/isabelle"] +# ENTRYPOINT ["Isabelle/bin/isabelle"] +ENTRYPOINT [ "sh", "-c", "Isabelle/bin/isabelle $INPUT_TOOL_ARGS" ] diff --git a/.github/isabelle-action/action.yml b/.github/isabelle-action/action.yml index 482aead..49c043f 100644 --- a/.github/isabelle-action/action.yml +++ b/.github/isabelle-action/action.yml @@ -3,8 +3,8 @@ description: "Build ROOT file" author: "josh@joshchen.io" inputs: - OPTION: - description: "Options to invoke" + TOOL_ARGS: + description: "Tool and argument invokation" required: true runs: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 43da8a9..9548ae7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,5 +9,5 @@ jobs: - uses: actions/checkout@v1 - uses: ./.github/isabelle-action with: - OPTION: "build -D ." + TOOL_ARGS: "build -D ." |