-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (37 loc) · 1.08 KB
/
build-linux.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
33
34
35
36
37
38
39
40
41
42
43
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:
mamba-build:
strategy:
matrix:
version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Conda environment from environment.yml
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
create-args: >-
python=${{ matrix.version }}
cache-environment: true
- name: Run the build script
shell: bash -l {0}
run: |
export CC=gcc
export CXX=g++
bash script/dependencies.sh # install dependencies
python setup.py bdist_wheel -- --preset build-linux # build the wheel
- name: 'Build wheel'
uses: actions/upload-artifact@v4
with:
name: pyoperon-${{ matrix.version }}
path: dist/*.whl
retention-days: 90