test CI #40
Workflow file for this run
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: 'Continuous Integration ASTex' | |
on: | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
build-windows: | |
name: 'On Windows' | |
runs-on: windows-2022 | |
steps: | |
- name: Export GitHub Actions cache environment variables | |
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 deps' | |
env: | |
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | |
run: | | |
vcpkg install zlib libpng eigen3 glfw3 imath openexr itk cgal suitesparse glew tbb | |
ls C:\vcpkg\installed\x64-windows\lib | |
ls $VCPKG_BINARY_SOURCES | |
- uses: actions/checkout@v1 | |
- name: 'Trying to compile ASTex on Windows' | |
run: | | |
mkdir Build | |
cd Build | |
cmake .. "-DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake" | |
cmake --build . | |
build-OsX: | |
name: 'On Mac' | |
runs-on: macos-13 | |
steps: | |
- name: install deps | |
run: | |
brew install zlib eigen glfw imath openexr openmpi itk cgal suitesparse tbb | |
- uses: actions/checkout@v1 | |
- name: 'Trying to compile ASTEx on mac' | |
run: | | |
sudo xcode-select --switch /Library/Developer/CommandLineTools | |
mkdir Build | |
cd Build | |
export PKG_CONFIG_PATH="/usr/local/opt/zlib/lib/pkgconfig" | |
cmake .. | |
cmake --build . |