From a7e4c0bd486aac36a865ec950566c1d98d6a854a Mon Sep 17 00:00:00 2001 From: Benjamin Redelings Date: Tue, 9 Dec 2025 20:54:53 -0500 Subject: [PATCH] Initial stab at github actions --- .github/workflows/build.yml | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b1a5fbc --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,48 @@ +name: Build and test + +on: + push: + branches: + - "*" + +defaults: + run: + shell: bash + +jobs: + build: + strategy: + matrix: + name: [ linux ] + include: + - name: linux + os: ubuntu-latest + + runs-on: ${{ matrix.os }} + container: + image: ${{ matrix.image || '' }} + steps: + - uses: actions/checkout@v4 + + - name: Install + run: | + sudo apt-get install -y ccache + + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2 + with: + key: ${{ matrix.name }} + restore-keys: | + ${{ matrix.name }} + + - name: Build and install + run: | + ./bootstrap.sh + cd ../ + mkdir build + cd build + ../ncl/configure --prefix=$HOME/local + make -j4 + make check + make install + make installcheck