-
Notifications
You must be signed in to change notification settings - Fork 5
32 lines (30 loc) · 1.43 KB
/
cmake-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Build with CMake
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
cmake_build_on_ubuntu:
runs-on: ubuntu-latest
steps:
- name: Dependencies
uses: daaku/gh-action-apt-install@v4
with:
packages: zlib1g-dev libjpeg-dev libhdf5-dev
- name: Checkout on Ubuntu
uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch all history for git describe to work
- name : Set up Python
uses: actions/[email protected]
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- name: Install dependencies
run:
python -m pip install --upgrade pip numpy pybind11
- name: Build on Ubuntu
uses: threeal/[email protected]
with:
run-build: true