Build with Local Ospray #1140
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: mac-build | |
on: | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
jobs: | |
mac-build-gui: | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
with: | |
version: 5.15.2 | |
target: desktop | |
host: mac | |
setup-python: 'false' | |
install-deps: true | |
- name: Print out Qt directory | |
run: echo $Qt5_DIR; echo $Qt5_Dir | |
- name: Prepare | |
run: | | |
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/ /usr/local/include/X11 | |
- name: make | |
run: ./build.sh -DQt_PATH="${Qt5_Dir}" | |
- name: Package | |
working-directory: bin/SCIRun | |
run: | | |
cmake -DBUILD_BUNDLE:BOOL=ON ../../src | |
make -j3 | |
make package | |
chmod +x repair_package.sh | |
./repair_package.sh | |
- name: Upload installer | |
uses: actions/upload-artifact@v2 | |
with: | |
name: SCIRunMacInstaller | |
path: bin/SCIRun/SCIRun-5.0.beta.*-Darwin.pkg | |
# - name: Deploy | |
# id: deploy | |
# if: github.ref == 'refs/heads/master' | |
# uses: marvinpinto/action-automatic-releases@latest | |
# with: | |
# repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
# automatic_release_tag: "dev-mac" | |
# prerelease: true | |
# title: "Development Build for Mac" | |
# files: | | |
# bin/SCIRun/SCIRun-5.0.beta.*-Darwin.pkg | |
mac-build-gui-nonpython: | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
with: | |
version: 5.15.2 | |
target: desktop | |
host: mac | |
setup-python: 'false' | |
install-deps: true | |
- name: Prepare | |
run: | | |
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/ /usr/local/include/X11 | |
- name: make | |
run: ./build.sh -DBUILD_WITH_PYTHON=OFF -DQt_PATH="${Qt5_Dir}" | |
- name: Package | |
working-directory: bin/SCIRun | |
run: | | |
cmake -DBUILD_BUNDLE:BOOL=ON ../../src | |
make -j3 | |
make package | |
chmod +x repair_package.sh | |
./repair_package.sh | |
- name: Upload installer | |
uses: actions/upload-artifact@v2 | |
with: | |
name: SCIRunMacNPInstaller | |
path: bin/SCIRun/SCIRun-5.0.beta.*-Darwin.pkg | |
mac-build-gui-ospray: | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
with: | |
version: 5.15.2 | |
target: desktop | |
host: mac | |
setup-python: 'false' | |
install-deps: true | |
- name: Print out Qt directory | |
run: echo $Qt5_DIR; echo $Qt5_Dir | |
- name: Prepare | |
run: | | |
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/ /usr/local/include/X11 | |
- name: make | |
run: ./build.sh -DWITH_OSPRAY:BOOL=ON -DQt_PATH="${Qt5_Dir}" | |
- name: Package | |
working-directory: bin/SCIRun | |
run: | | |
cmake -DBUILD_BUNDLE:BOOL=ON ../../src | |
make -j3 | |
make package | |
chmod +x repair_package.sh | |
./repair_package.sh | |
- name: Upload installer | |
uses: actions/upload-artifact@v2 | |
with: | |
name: SCIRunMacOsprayInstaller | |
path: bin/SCIRun/SCIRun-5.0.beta.*-Darwin.pkg | |
# - name: Deploy | |
# id: deploy | |
# if: github.ref == 'refs/heads/master' | |
# uses: marvinpinto/action-automatic-releases@latest | |
# with: | |
# repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
# automatic_release_tag: "dev-mac" | |
# prerelease: true | |
# title: "Development Build for Mac" | |
# files: | | |
# bin/SCIRun/SCIRun-5.0.beta.*-Darwin.pkg | |
mac-build-headless: | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Prepare | |
run: | | |
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/ /usr/local/include/X11 | |
- name: Compile | |
run: ./build.sh -DBUILD_HEADLESS:BOOL=ON -DBUILD_TESTING:BOOL=ON | |
- name: Test | |
working-directory: bin/SCIRun | |
continue-on-error: true | |
run: make test |