manylinux.yml checked in in DOS format. #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |