-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (83 loc) · 2.65 KB
/
meson.yml
File metadata and controls
91 lines (83 loc) · 2.65 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Meson
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: ${{ matrix.os }}/${{ matrix.arch }}/${{ matrix.compiler }}-v${{ matrix.version }}/Mode-${{ matrix.mode }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
compiler: ['gcc']
version: ['14']
mode: ['static'] # ['shared']
include:
- os: ubuntu-24.04-arm
compiler: gcc
version: '14'
arch: 'arm64'
mode: 'static'
# - os: ubuntu-24.04-arm
# compiler: gcc
# version: '14'
# arch: 'arm64'
# mode: 'shared'
runs-on: ${{ matrix.os }}
steps:
- name: Check out diffblas
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Meson and Ninja
shell: bash
run: |
pip install meson
pip install ninja
- name: Install compilers
uses: fortran-lang/setup-fortran@main
with:
compiler: ${{ matrix.compiler }}
version: ${{ matrix.version }}
# Uncomment this section to obtain ssh access to VM
# - name: Setup tmate session
# if: matrix.os == 'macos-latest'
# uses: mxschmitt/action-tmate@v3
- name: Setup diffblas
shell: bash
run: |
meson setup builddir --buildtype=debug \
--prefix=$(pwd) \
-Ddefault_library=${{ matrix.mode }}
- name: Build diffblas
shell: bash
run: |
meson compile -C builddir
- uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{ matrix.os }}_${{ matrix.compiler }}-v${{ matrix.version }}_${{ matrix.mode }}_meson-log.txt
path: builddir/meson-logs/meson-log.txt
- name: Install diffblas
shell: bash
run: |
meson install -C builddir
- uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{ matrix.os }}_${{ matrix.compiler }}-v${{ matrix.version }}_${{ matrix.mode }}_install-log.txt
path: builddir/meson-logs/install-log.txt
# - name: Test diffblas
# shell: bash
# run: |
# meson test -C builddir
# - uses: actions/upload-artifact@v4
# if: failure()
# with:
# name: ${{ matrix.os }}_${{ matrix.compiler }}-v${{ matrix.version }}_${{ matrix.mode }}_testlog.txt
# path: builddir/meson-logs/testlog.txt