Skip to content

Commit

Permalink
add build release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilo9999 committed Dec 12, 2021
1 parent 767fb89 commit 7f9ab2e
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: build-release-vr-volumeviewer

on: workflow_dispatch

env:
BUILD_TYPE: Release

jobs:
build_windows:

runs-on: windows-2019

steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1
- uses: seanmiddleditch/gha-setup-ninja@master


- name: Clean superbuild folder
run: superbuild/clean/clean.bat

- name: Open superbuild folder
run: cd superbuild

- name: Configure CMake
run: |
cd superbuild
cmake -S . -B . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G Ninja
- name: Build
run: |
cd superbuild
ninja
- name: Test
working-directory: ${{github.workspace}}/superbuild/install_Windows/bin
run: ctest


build_mac:

runs-on: macos-11

steps:
- uses: actions/checkout@v2

- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.20.3'

- name: Clean superbuild folder
run: python3 superbuild/clean/clean.py

- name: Open superbuild folder
run: cd superbuild

- name: Configure CMake
run: |
cd superbuild
cmake -S . -B . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: |
cd superbuild
make
- name: Test
working-directory: ${{github.workspace}}/superbuild/install_Darwin/bin
run: ctest

0 comments on commit 7f9ab2e

Please sign in to comment.