attempting to fix cython compilation errors with msvc timeofday #50
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: Build | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- 'feature/**' | |
- 'release/**' | |
pull_request: | |
branches: | |
- main | |
#env: | |
# BUILD_TYPE: Release | |
jobs: | |
build: | |
strategy: | |
matrix: | |
# os: [ubuntu-latest, windows-latest, macos-latest] | |
# release: [Release] | |
# ssl: [ON, OFF] | |
# client-only: [OFF] | |
# capnp: [ON, OFF] | |
os: [windows-latest] | |
release: [Release] | |
ssl: [OFF] | |
client-only: [ON] | |
capnp: [OFF] | |
# include: | |
# - client-only: ON | |
# ssl: OFF | |
# - client-only: OFF | |
# ssl: OFF | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/github-script@v7 | |
with: | |
script: | | |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | |
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | |
- name: Install linux dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: > | |
sudo apt-get update && sudo apt-get install -y | |
git | |
libboost-dev | |
libboost-program-options-dev | |
libssl-dev | |
cmake | |
build-essential | |
pkg-config | |
libxml2-dev | |
libspdlog-dev | |
ninja-build | |
capnproto | |
libcapnp-dev | |
python3-dev | |
python3-pip | |
python3-venv | |
- name: Install macos dependencies | |
if: matrix.os == 'macos-latest' | |
run: > | |
brew update-reset && brew install | |
git | |
boost | |
openssl | |
cmake | |
pkg-config | |
libxml2 | |
spdlog | |
ninja | |
capnp | |
# - name: Cache windows packages | |
# id: cache-vcpkg | |
# uses: actions/cache@v3 | |
# env: | |
# cache-name: cache-vcpkg-packages | |
# with: | |
# path: C:/vcpkg | |
# key: ${{ runner.os }}-build-${{ env.cache-name }} | |
- name: Install windows dependencies | |
if: matrix.os == 'windows-latest' | |
# vcpkg install --triplet x64-mingw-static --binarysource="clear;x-gha,readwrite" | |
# rm -r $VCPKG_INSTALLATION_ROOT/buildtrees && | |
# git -C $VCPKG_INSTALLATION_ROOT pull && | |
# vcpkg update && vcpkg upgrade && | |
run: > | |
vcpkg install --triplet x64-mingw-static --binarysource="clear;x-gha,readwrite" | |
libxml2 | |
capnproto | |
boost-program-options | |
boost-format | |
boost-algorithm | |
boost-multi-array | |
openssl | |
dlfcn-win32 | |
spdlog | |
- name: Configure CMake (linux) | |
if: matrix.os == 'ubuntu-latest' | |
run: > | |
cmake -G Ninja -B build | |
-DBUILD_SHARED_LIBS=ON | |
-DCMAKE_BUILD_TYPE=${{ matrix.release }} | |
-DSSLAUTHENTICATION=${{ matrix.ssl }} | |
-DCLIENT_ONLY=${{ matrix.client-only }} | |
-DENABLE_CAPNP=${{ matrix.capnp }} | |
- name: Configure CMake (macos) | |
if: matrix.os == 'macos-latest' | |
run: > | |
cmake -G Ninja -B build | |
-DBUILD_SHARED_LIBS=ON | |
-DCMAKE_BUILD_TYPE=${{ matrix.release }} | |
-DSSLAUTHENTICATION=${{ matrix.ssl }} | |
-DCLIENT_ONLY=${{ matrix.client-only }} | |
-DENABLE_CAPNP=${{ matrix.capnp }} | |
-DOPENSSL_ROOT_DIR="$(brew --prefix openssl@3)" | |
- name: Configure portable XDR | |
if: matrix.os == 'windows-latest' | |
run: > | |
cd extlib | |
&& cmake -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -B build -G "MinGW Makefiles" . | |
- name: Build portable XDR | |
if: matrix.os == 'windows-latest' | |
run: cd extlib && cmake --build build | |
- name: Install portable XDR | |
if: matrix.os == 'windows-latest' | |
run: cd extlib && cmake --install build --prefix install | |
- name: Configure CMake (windows) | |
if: matrix.os == 'windows-latest' | |
run: > | |
XDR_ROOT=extlib/install cmake -G "MinGW Makefiles" -B build | |
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake | |
-DBUILD_SHARED_LIBS=ON | |
-DCMAKE_BUILD_TYPE=${{ matrix.release }} | |
-DSSLAUTHENTICATION=${{ matrix.ssl }} | |
-DCLIENT_ONLY=${{ matrix.client-only }} | |
-DENABLE_CAPNP=${{ matrix.capnp }} | |
-DCMAKE_INSTALL_PREFIX=install | |
- name: Build | |
run: cmake --build build --config ${{ matrix.release }} | |
- name: Install | |
if: matrix.os != 'windows-latest' | |
run: sudo cmake --install build --config ${{ matrix.release }} | |
- name: Install | |
if: matrix.os == 'windows-latest' | |
run: > | |
cmake --install build --config ${{ matrix.release }} | |
- name: Test windows mingw client | |
if: matrix.os == 'windows-latest' | |
shell: pwsh | |
run: > | |
echo "copying portablexdr libs to bin directory..." && | |
cp extlib/install/lib/* install/bin/ | |
&& echo "ls install" && ls install && echo "ls install/bin" && ls install/bin | |
&& echo "adding msys2 to path" && | |
Add-Content $env:GITHUB_PATH "C:\msys64" | |
&& echo "attempting to connect to remote server..." && | |
./install/bin/uda_cli.exe -h 34.75.87.48 -p 56565 --ping | |
# && cp install/lib/libuda_client.* install/bin/ | |
# && echo "calling uda commandline interface..." && | |
# (./install/bin/uda_cli.exe --help) | |
# - name: Install pyuda | |
# if: matrix.os == 'ubuntu-latest' | |
# run: > | |
# cp -r /usr/local/python_installer ${{github.workspace}}/python_installer && | |
# python3 -m venv ${{github.workspace}}/venv && | |
# source ${{github.workspace}}/venv/bin/activate && | |
# pip3 install Cython numpy six && | |
# pip3 install ${{github.workspace}}/python_installer | |
# - name: Test pyuda import | |
# if: matrix.os == 'ubuntu-latest' | |
# run: > | |
# source ${{github.workspace}}/venv/bin/activate && | |
# python3 -c 'import pyuda; client=pyuda.Client()' | |
# - name: Test | |
# working-directory: build | |
# # Execute tests defined by the CMake configuration. | |
# # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | |
# run: ctest -C ${{ matrix.release }} | |