Skip to content

Update build.yml

Update build.yml #9

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsuitesparse-dev pybind11-dev python3 python3-dev metis libmetis5
- name: Configure
run: ${{ matrix.cmake-config-env-vars }} cmake -B build -S .
- name: Build
run: cmake --build build --parallel $(nproc)
- name: Install
run: cmake --install build --prefix pkg
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.artifact-name }}
path: pkg