-
Notifications
You must be signed in to change notification settings - Fork 52
126 lines (101 loc) · 2.86 KB
/
Copy pathci-scripts.yml
File metadata and controls
126 lines (101 loc) · 2.86 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name: Makefile
on: [push, pull_request, workflow_dispatch]
defaults:
run:
shell: bash
env:
SETUP_PATH: .ci-local:.ci
jobs:
make:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
cmp: gcc
base: "7.0"
py: "3.8"
- os: ubuntu-latest
cmp: gcc
base: "7.0"
py: "3.x"
- os: windows-latest
cmp: vs2022
base: "7.0"
py: "3.8"
- os: windows-latest
cmp: vs2022
base: "7.0"
py: "3.x"
- os: macos-latest
cmp: clang
base: "7.0"
py: "3.8"
- os: macos-latest
cmp: clang
base: "7.0"
py: "3.x"
env:
MODULES: "pvxs"
BASE: ${{ matrix.base }}
BASE_RECURSIVE: NO
PVXS: master
PVXS_REPOOWNER: epics-base
CMP: ${{ matrix.cmp }}
BCFG: default
TEST: ${{ matrix.test }}
EXTRA: ${{ matrix.extra }}
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Automatic core dumper analysis
uses: mdavidsaver/ci-core-dumper@ci
- name: "apt-get install"
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get -y install libreadline-dev g++-mingw-w64-x86-64 cmake gdb qemu-system-x86 libevent-dev
- name: "brew libevent"
if: runner.os == 'macOS'
run: |
brew install libevent
echo "LIBEVENT=$(brew --prefix)" >> "$GITHUB_ENV"
- name: "vcpkg cache"
if: runner.os == 'Windows'
uses: actions/cache@v4
with:
path: c:/vcpkg-cache
key: ${{ runner.os }}-vcpkg
- name: "vcpkg build"
if: runner.os == 'Windows'
shell: bash
run: |
install -d c:/vcpkg-cache
vcpkg install --binarysource="clear;files,c:/vcpkg-cache,readwrite" "libevent"
ls C:/vcpkg/installed/x64-windows
echo "LIBEVENT=C:/vcpkg/installed/x64-windows" >> "$GITHUB_ENV"
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.py }}
- name: Inspect
shell: bash
run: find "$Python_ROOT_DIR"
- name: get_config_vars
run: python -c 'import sysconfig, pprint; pprint.pprint(sysconfig.get_config_vars())'
- name: Prepare and compile dependencies
run: python .ci/cue.py prepare
- name: Py Deps
run: |
pip install -U pip
pip install Cython numpy ply nose2
- name: Build main module
run: python .ci/cue.py build
- name: List
shell: bash
run: find python* -type f
- name: Test
# "make nose" not yet working on Windows.
if: runner.os != 'Windows'
run: python .ci/cue.py build nose