Fix typos introduced in 137577d #1
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 and Install the CGV framework | |
on: push | |
jobs: | |
build-ubuntu: | |
name: "Ubuntu: Build and Install the CGV framework" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build Docker Image | |
run: docker build . -t build-image | |
- name: Run Build | |
run: docker run -v $(pwd):/app build-image | |
- name: Upload Install zip for Ubuntu | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cgv-install-ubuntu | |
path: ./install | |
build-windows: | |
name: "Windows: Build and Install the CGV framework" | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Ninja | |
uses: seanmiddleditch/gha-setup-ninja@master | |
- name: Setup VS Environment | |
uses: seanmiddleditch/gha-setup-vsdevenv@master | |
- run: mkdir build | |
- name: Run CMake | |
working-directory: build | |
run: cmake .. -G Ninja -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=../install -D CMAKE_CXX_COMPILER=cl -D CMAKE_C_COMPILER=cl | |
- name: Build and Install | |
working-directory: ./build | |
run: cmake --build . --target install | |
- name: Upload Install zip for Windows | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cgv-install-windows | |
path: ./install | |
release: | |
name: "Create Release" | |
runs-on: ubuntu-latest | |
needs: [build-ubuntu, build-windows] | |
steps: | |
- uses: actions/[email protected] | |
- run: zip -r cgv-install-ubuntu.zip cgv-install-ubuntu/ | |
- run: zip -r cgv-install-windows.zip cgv-install-windows/ | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
cgv-install-ubuntu.zip | |
cgv-install-windows.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |