Skip to content

Commit

Permalink
CI: add linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
foolnotion committed Jun 2, 2024
1 parent 7775438 commit 38b1119
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build-linux

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build-python-module:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Create venv
shell: bash -l {0}
run: |
python -m venv vstat-env
source vstat-env/bin/activate
pip install nanobind scikit-build ninja
deactivate
- name: Run the build script
shell: bash -l {0}
run: |
export CC=gcc
export CXX=g++
python setup.py bdist_wheel

0 comments on commit 38b1119

Please sign in to comment.