-
Notifications
You must be signed in to change notification settings - Fork 442
78 lines (65 loc) · 1.91 KB
/
core.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Core C CI
on:
workflow_dispatch:
pull_request:
push:
jobs:
standard:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, macos-latest]
name: "💦 ${{ matrix.runs-on }}"
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- name: Setup environment (macOS)
if: runner.os == 'macos'
run: |
brew update
brew install autoconf automake pybind11 virtualenv
- name: Setup environment (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get install -y --no-install-recommends build-essential pybind11-dev virtualenv python3-dev
#- name: Setup libfec
# run: git clone https://github.com/jgaeddert/libfec.git && cd libfec && ./configure && make && sudo make install
- name: Build and test
run: |
virtualenv env/liquid
source env/liquid/bin/activate
python -m pip install pybind11 numpy matplotlib
mkdir build
cd build
cmake ..
make
#make install
#ldconfig
./xautotest -v -o autotest.json
#make check-link
#make doc-check
#make bench
build_wheels:
name: Build wheels on ${{ matrix.os }}
needs: standard
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
#os: [ubuntu-latest, windows-latest, macos-13, macos-14]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/[email protected]
# env:
# CIBW_SOME_OPTION: value
# ...
# with:
# package-dir: .
# output-dir: wheelhouse
# config-file: "{package}/pyproject.toml"
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl