|
| 1 | +## Copyright 2022 Intel Corporation |
| 2 | +## SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +name: Release Workflow |
| 5 | +on: |
| 6 | + push: |
| 7 | + branches: |
| 8 | + - '**release**' |
| 9 | + - 'devel' |
| 10 | + - 'master' |
| 11 | + workflow_dispatch: |
| 12 | + |
| 13 | +concurrency: |
| 14 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 15 | + cancel-in-progress: true |
| 16 | + |
| 17 | +jobs: |
| 18 | + kw-build-scan-report: |
| 19 | + secrets: inherit |
| 20 | + uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/static_analysis.yml@main |
| 21 | + with: |
| 22 | + project: openvkl |
| 23 | + submodules: true |
| 24 | + prebuild: | |
| 25 | + mkdir build |
| 26 | + cd build |
| 27 | + export LD_LIBRARY_PATH=`pwd`/install/lib:${LD_LIBRARY_PATH} |
| 28 | + cmake -DBUILD_JOBS=`nproc` -DBUILD_DEPENDENCIES_ONLY=ON -DBUILD_GLFW=OFF "$@" ../superbuild |
| 29 | + cmake --build . |
| 30 | + mkdir openvkl_build |
| 31 | + cd openvkl_build |
| 32 | + DEP_INSTALL_DIR=`pwd`/../install |
| 33 | + export rkcommon_DIR=$DEP_INSTALL_DIR |
| 34 | + export embree_DIR=$DEP_INSTALL_DIR |
| 35 | + cmake -DISPC_EXECUTABLE=$DEP_INSTALL_DIR/bin/ispc -DBUILD_EXAMPLES=OFF -DRKCOMMON_TBB_ROOT=$DEP_INSTALL_DIR ../.. |
| 36 | + cd ../.. |
| 37 | + build: cmake --build ./build/openvkl_build |
| 38 | + |
| 39 | + |
| 40 | + release-linux: |
| 41 | + secrets: inherit |
| 42 | + uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker.yml@main |
| 43 | + with: |
| 44 | + submodules: true |
| 45 | + runs-on: '[ "Linux", "docker" ]' |
| 46 | + image: centos:7 |
| 47 | + artifact-out: release-linux |
| 48 | + artifact-path: ./*.gz |
| 49 | + cmd: | |
| 50 | + export OPENVKL_RELEASE_PACKAGE_VERSION="1.3.1" |
| 51 | + module load cmake |
| 52 | + module load intel/2022.1 |
| 53 | + export CC=icx |
| 54 | + export CXX=icpx |
| 55 | + export CXXFLAGS="-fPIC -fp-model=precise" |
| 56 | + export LDFLAGS="-static-intel" |
| 57 | + gitlab/release/linux.sh |
| 58 | +
|
| 59 | + release-windows: |
| 60 | + secrets: inherit |
| 61 | + uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/windows.yml@main |
| 62 | + with: |
| 63 | + submodules: true |
| 64 | + runs-on: '[ "Windows", "NAS", "build" ]' |
| 65 | + artifact-out: release-windows |
| 66 | + artifact-path: ./*.zip |
| 67 | + cmd: | |
| 68 | + $env:OPENVKL_RELEASE_PACKAGE_VERSION="1.3.1" |
| 69 | + $OPENVKL_RELEASE_PACKAGE_VERSION="1.3.1" |
| 70 | + gitlab/release/windows.ps1 "Visual Studio 15 2017 Win64" "v141" |
| 71 | +
|
| 72 | + release-macos: |
| 73 | + secrets: inherit |
| 74 | + uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/macos.yml@main |
| 75 | + with: |
| 76 | + submodules: true |
| 77 | + runs-on: '[ "macOS", "sign", "avx2", "x86_64" ]' |
| 78 | + artifact-out: release-macos |
| 79 | + artifact-path: ./*.zip |
| 80 | + cmd: | |
| 81 | + export OPENVKL_RELEASE_PACKAGE_VERSION="1.3.1" |
| 82 | + gitlab/release/macos.sh |
| 83 | +
|
| 84 | + release-linux-test: |
| 85 | + needs: release-linux |
| 86 | + secrets: inherit |
| 87 | + uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker.yml@main |
| 88 | + with: |
| 89 | + runs-on: '[ "Linux", "docker" ]' |
| 90 | + image: centos:7 |
| 91 | + artifact-in: release-linux |
| 92 | + cmd: | |
| 93 | + export OPENVKL_RELEASE_PACKAGE_VERSION="1.3.1" |
| 94 | + gitlab/release/linux-test.sh |
| 95 | +
|
| 96 | + release-windows-test: |
| 97 | + needs: release-windows |
| 98 | + secrets: inherit |
| 99 | + uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/windows.yml@main |
| 100 | + with: |
| 101 | + runs-on: '[ "Windows" ]' |
| 102 | + artifact-in: release-windows |
| 103 | + cmd: | |
| 104 | + $env:OPENVKL_RELEASE_PACKAGE_VERSION="1.3.1" |
| 105 | + $OPENVKL_RELEASE_PACKAGE_VERSION="1.3.1" |
| 106 | + gitlab/release/windows-test.ps1 "Visual Studio 15 2017 Win64" "v141" |
| 107 | +
|
| 108 | + release-macos-test: |
| 109 | + needs: release-macos |
| 110 | + secrets: inherit |
| 111 | + uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/macos.yml@main |
| 112 | + with: |
| 113 | + runs-on: '[ "macOS", "avx2", "x86_64" ]' |
| 114 | + artifact-in: release-macos |
| 115 | + cmd: | |
| 116 | + export OPENVKL_RELEASE_PACKAGE_VERSION="1.3.1" |
| 117 | + gitlab/release/macos-test.sh |
| 118 | +
|
| 119 | + binary-analysis: |
| 120 | + needs: |
| 121 | + - release-linux |
| 122 | + - release-macos |
| 123 | + - release-windows |
| 124 | + secrets: inherit |
| 125 | + uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/binary_analysis.yml@main |
| 126 | + with: |
| 127 | + project: openvkl |
| 128 | + artifact-in-linux: release-linux |
| 129 | + artifact-in-macos: release-macos |
| 130 | + artifact-in-windows: release-windows |
| 131 | + path: "*.zip *.gz" |
| 132 | + |
| 133 | + antivirus-scan: |
| 134 | + needs: |
| 135 | + - release-linux |
| 136 | + - release-macos |
| 137 | + - release-windows |
| 138 | + secrets: inherit |
| 139 | + uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/antivirus_scan.yml@main |
| 140 | + with: |
| 141 | + project: openvkl |
| 142 | + artifact-in-linux: release-linux |
| 143 | + artifact-in-macos: release-macos |
| 144 | + artifact-in-windows: release-windows |
| 145 | + path: "*.zip *.gz" |
0 commit comments