From 31dca5713d3fbd8401dd35cbf12c2cfcb4944db8 Mon Sep 17 00:00:00 2001 From: Josh Chen Date: Fri, 17 Jul 2020 10:35:07 +0200 Subject: more testing --- .github/isabelle-action/Dockerfile | 15 +++++---------- .github/isabelle-action/action.yml | 6 +++--- .github/workflows/ci.yml | 13 +++++++++++++ .github/workflows/main.yml | 13 ------------- 4 files changed, 21 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/main.yml diff --git a/.github/isabelle-action/Dockerfile b/.github/isabelle-action/Dockerfile index db77ed8..28fcf65 100644 --- a/.github/isabelle-action/Dockerfile +++ b/.github/isabelle-action/Dockerfile @@ -1,21 +1,18 @@ -## Isabelle/Pure on Isabelle2020 +## Isabelle2020 Dockerfile for GitHub Actions FROM ubuntu SHELL ["/bin/bash", "-c"] # Packages ENV DEBIAN_FRONTEND=noninteractive -RUN apt-get -y update && \ - apt-get install -y curl less libfontconfig1 libgomp1 libwww-perl rlwrap unzip && \ +RUN apt-get -y update &&\ + apt-get install -y curl less libfontconfig1 libgomp1 libwww-perl rlwrap unzip &&\ apt-get clean -# User -RUN useradd -m isabelle && (echo isabelle:isabelle | chpasswd) -USER isabelle # Isabelle -WORKDIR /home/isabelle -ADD --chown=isabelle:isabelle https://isabelle.in.tum.de/dist/Isabelle2020_linux.tar.gz Isabelle.tar.gz +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 &&\ @@ -23,7 +20,5 @@ RUN tar xzf Isabelle.tar.gz &&\ Isabelle/bin/isabelle build -o system_heaps -b Pure &&\ rm Isabelle.tar.gz -# ENTRYPOINT ["Isabelle/bin/isabelle"] -#ENTRYPOINT [ "sh", "-c", "./Isabelle/bin/isabelle $INPUT_TOOL_ARGS" ] ENTRYPOINT [ "sh", "-c", "ls" ] diff --git a/.github/isabelle-action/action.yml b/.github/isabelle-action/action.yml index 49c043f..c9a1b4a 100644 --- a/.github/isabelle-action/action.yml +++ b/.github/isabelle-action/action.yml @@ -1,10 +1,10 @@ -name: "build" -description: "Build ROOT file" +name: "Isabelle action" +description: "Run Isabelle" author: "josh@joshchen.io" inputs: TOOL_ARGS: - description: "Tool and argument invokation" + description: "Isabelle tool to invoke and arguments to pass" required: true runs: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4b9f617 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,13 @@ +name: continuous integration +on: push + +jobs: + build: + name: build ROOT + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: ./.github/isabelle-action + with: + TOOL_ARGS: "build -D ." + diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 9548ae7..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: continuous integration -on: push - -jobs: - build: - name: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: ./.github/isabelle-action - with: - TOOL_ARGS: "build -D ." - -- cgit v1.2.3