From 9d8975cdca94fabef6a4ffe7dce49b19c03bf1f0 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Sun, 3 Mar 2024 19:23:13 +0100 Subject: [PATCH] added workflow --- .github/workflows/make.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/make.yml diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml new file mode 100644 index 0000000..3ce4f3d --- /dev/null +++ b/.github/workflows/make.yml @@ -0,0 +1,28 @@ +name: Build and Generate Artifact + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Install PETSc, MPI, and OpenMPI + run: | + sudo apt-get install -y petsc mpi openmpi-bin libopenmpi-dev + + - name: Build Project + run: | + make + + - name: Archive Artifact + uses: actions/upload-artifact@v2 + with: + name: main-binary + path: bin/main