From 8dd162093613cf53cece95e5aa8dbf3773bc675f Mon Sep 17 00:00:00 2001 From: Matthew Gretton-Dann Date: Fri, 15 Mar 2024 10:51:50 +0000 Subject: [PATCH] And support for Gitea workflow Adds a workflow that will build and test whenever any changes are pushed to the main branch, or a PR is opened against the main branch. --- .gitea/workflows/build-and-test.yaml | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/build-and-test.yaml diff --git a/.gitea/workflows/build-and-test.yaml b/.gitea/workflows/build-and-test.yaml new file mode 100644 index 0000000..202254a --- /dev/null +++ b/.gitea/workflows/build-and-test.yaml @@ -0,0 +1,33 @@ +name: "BuildTest" +on: + push: + branches: [ main ] + pull_request: + breanches: [ main ] + +jobs: + build: + name: "Build and test" + runs-on: ubuntu-latest + steps: + - name: "Install build deps" + run: | + export DEBIAN_FRONTEND=noninteractive + sudo apt-get update + sudo apt-get -y --no-install-recommends install build-essential \ + texlive-latex-base texlive-latex-recommended + + - name: "Checkout repo" + uses: actions/checkout@v3 + + - name: "Bootstrap nuweb" + run: make nuweb + + - name: "Make nuweb.tex" + run: make nuweb.tex nuwebdoc.tex + + - name: "Build again" + run: make nuweb + + - name: "Run tests" + run: make check