You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
747 B
YAML
39 lines
747 B
YAML
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 && make)
|
|
make
|
|
|
|
- name: Archive Artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: main-binary
|
|
path: bin/main
|