From f82258111e48a94d22f12fd4920d443edb66fb55 Mon Sep 17 00:00:00 2001 From: Josh Chen Date: Thu, 16 Jul 2020 18:57:13 +0200 Subject: set up CI --- .github/isabelle-action/Dockerfile | 27 +++++++++++++++++++++++++++ .github/isabelle-action/action.yml | 13 +++++++++++++ .github/workflows/main.yml | 13 +++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 .github/isabelle-action/Dockerfile create mode 100644 .github/isabelle-action/action.yml create mode 100644 .github/workflows/main.yml (limited to '.github') diff --git a/.github/isabelle-action/Dockerfile b/.github/isabelle-action/Dockerfile new file mode 100644 index 0000000..b223e02 --- /dev/null +++ b/.github/isabelle-action/Dockerfile @@ -0,0 +1,27 @@ +## Isabelle/Pure on Isabelle2020 + +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 && \ + apt-get clean + +# user +RUN useradd -m isabelle && (echo isabelle:isabelle | chpasswd) +USER isabelle + +# Isabelle +WORKDIR /home/isabelle +COPY Isabelle.tar.gz . +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_LOGIC=.*,ISABELLE_LOGIC=Pure,g;' Isabelle/etc/settings && \ + Isabelle/bin/isabelle build -o system_heaps -b Pure && \ + rm Isabelle.tar.gz + +ENTRYPOINT ["Isabelle/bin/isabelle"] + diff --git a/.github/isabelle-action/action.yml b/.github/isabelle-action/action.yml new file mode 100644 index 0000000..482aead --- /dev/null +++ b/.github/isabelle-action/action.yml @@ -0,0 +1,13 @@ +name: "build" +description: "Build ROOT file" +author: "josh@joshchen.io" + +inputs: + OPTION: + description: "Options to invoke" + required: true + +runs: + using: "docker" + image: "Dockerfile" + diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..dfcfb7b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,13 @@ +name: continuous integration +on: push + +jobs: + build: + name: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: ./isabelle-action + with: + OPTION: "build -D ." + -- cgit v1.2.3