-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (64 loc) · 1.86 KB
/
main.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
name: Build with Python
on:
push:
branches: ["main","dev"]
pull_request:
branches: ["main","dev"]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10","3.11"]
os: [ubuntu-latest, windows-latest] #, macos-latest]
toolchain:
- {compiler: gcc, version: 13}
# - {compiler: gcc, version: 12}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Fortran Setup
uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
cache: 'pip'
- name: show-versions
run: |
gcc --version
gfortran --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install click 'numpy<1.26' cython build wheel setuptools setuptools_scm meson-python pytest ninja
- name: Install Patchelf
if: runner.os == 'Linux'
run: |
python -m pip install patchelf
- name: Build and package
run: |
python -m build --no-isolation
- name: Store Wheel
uses: actions/upload-artifact@v3
with:
name: pyfvs-${{ runner.os }}-py${{ matrix.python-version }}-wheels
path: dist/*.whl
if-no-files-found: warn
- name: Store Sdist
uses: actions/upload-artifact@v3
with:
name: pyfvs-sdist
path: dist/*.tar.gz
if-no-files-found: warn
# - name: Test with pytest
# run: |
# pytest