From e41e25e11917f87e2617f5f7d8550f7d93bd7f26 Mon Sep 17 00:00:00 2001 From: Thomas Guymer Date: Sat, 13 Jul 2024 17:57:13 +0100 Subject: [PATCH] first attempt at a GitHub Action for GNUMake --- .github/workflows/gmake.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/gmake.yml diff --git a/.github/workflows/gmake.yml b/.github/workflows/gmake.yml new file mode 100644 index 0000000..82c80c7 --- /dev/null +++ b/.github/workflows/gmake.yml @@ -0,0 +1,38 @@ +name: Gmake + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10"] + steps: + - + name: Checkout project # https://github.com/actions/checkout + uses: actions/checkout@v4 + with: + path: main + - + name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 # https://github.com/actions/setup-python + with: + python-version: ${{ matrix.python-version }} + - + name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install matplotlib + pip install pylint + pip install scipy + pip install sphinx + - + name: Compile the FORTRAN code + run: | + echo "::notice $(which gfortran)" + echo "::notice $(which gmake)" + echo "::notice $(which pip)" + echo "::notice $(which python)" + cd main + gmake -r FC=`which gfortran` PYTHON3=`which python`