-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (50 loc) · 1.61 KB
/
manylinux.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
name: manylinux
on:
push:
paths:
- "**"
- "!.github/**"
- ".github/workflows/manylinux.yml"
defaults:
run:
shell: bash
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
name: manylinux
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64
steps:
- uses: actions/checkout@v2
- name: install latest cmake
run: |
/opt/python/cp38-cp38/bin/pip install cmake
ln -s /opt/python/cp38-cp38/bin/cmake /usr/bin/cmake
- name: install libuuid (static)
run: |
curl -L -O http://downloads.sourceforge.net/libuuid/libuuid-1.0.3.tar.gz
tar -zxf libuuid-1.0.3.tar.gz
cd libuuid-1.0.3
./configure --disable-dependency-tracking --with-pic --enable-static=yes --enable-shared=no
make
make install
rm /usr/local/lib/libuuid.la
- name: Configure CMake
run: |
git config --global --add safe.directory $PWD
cmake -B build -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_UI_DEPS=OFF -DCMAKE_INSTALL_PREFIX=./install/
- name: Build
working-directory: build
run: cmake --build . --config $BUILD_TYPE -j `nproc`
- name: Patch cmake files
run: |
sed -i 's|'$PWD'/install/|${_IMPORT_PREFIX}/|g' $PWD/install/lib64/cmake/*.cmake
- name: binary archive
uses: actions/upload-artifact@v2
with:
name: manylinux2014
path: install/*
retention-days: 90
if-no-files-found: error