1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
## Copyright 2022 Intel Corporation
## SPDX-License-Identifier: Apache-2.0
name: release
permissions: read-all
on: [push, workflow_dispatch]
jobs:
release-ze_raytracing-ubuntu22_04-GCC:
secrets: inherit
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker.yml@main
with:
image: embree/ubuntu:22.04
runs-on: '[ "Linux", "docker", "build" ]'
artifact-out: release-ze_raytracing-ubuntu22_04-GCC
artifact-path: ./build
cmd: |
mkdir build
cd build
cmake -G Ninja -D CMAKE_CXX_COMPILER=g++ -D CMAKE_C_COMPILER=gcc -D CMAKE_BUILD_TYPE=ReleaseInternal ..
cmake --build . --target package
release-ze_raytracing-windows-VS2022:
secrets: inherit
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/windows.yml@main
with:
runs-on: '[ "Windows", "build" ]'
artifact-path: ./build
artifact-out: release-ze_raytracing-windows-VS2022
cmd: |
mkdir build
cd build
cmake -G "Visual Studio 17 2022" -A "x64" ..
cmake --build . --config ReleaseInternal --target package
source-code-analysis:
secrets: inherit
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/source_analysis.yml@main
with:
project-name: c_levelzeroraytracingsupport_26693
path-to-src: .
binary-analysis:
needs:
- release-ze_raytracing-ubuntu22_04-GCC
- release-ze_raytracing-windows-VS2022
secrets: inherit
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/binary_analysis.yml@main
with:
project: embree
artifact-in-windows: release-ze_raytracing-windows-VS2022
artifact-in-linux: release-ze_raytracing-ubuntu22_04-GCC
path: "build/*.zip build/*.gz"
antivirus-scan:
needs:
- release-ze_raytracing-ubuntu22_04-GCC
- release-ze_raytracing-windows-VS2022
secrets: inherit
uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/antivirus_scan.yml@main
with:
project: embree
artifact-in-windows: release-ze_raytracing-windows-VS2022
artifact-in-linux: release-ze_raytracing-ubuntu22_04-GCC
path: "build/*.zip build/*.gz"
success-release:
runs-on: ubuntu-latest
needs:
- release-ze_raytracing-ubuntu22_04-GCC
- release-ze_raytracing-windows-VS2022
- binary-analysis
- antivirus-scan
- source-code-analysis
if: failure() || cancelled()
steps:
- name: Failure
run: |
echo "::notice title=Success::Workflow failed"
exit 1
|