updated workflow #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-dev \ | |
libpetsc-real-dev \ | |
mpi-default-bin \ | |
mpi-default-dev \ | |
openmpi-bin \ | |
openmpi-common \ | |
libopenmpi-dev | |
- name: Build | |
run: | | |
git submodule init | |
git submodule update | |
cd deps/petsc && ./configure | |
cd deps/petsc && make | |
make | |
- name: Archive Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: main-binary | |
path: bin/main |