File tree Expand file tree Collapse file tree 12 files changed +1029
-321
lines changed
Expand file tree Collapse file tree 12 files changed +1029
-321
lines changed Original file line number Diff line number Diff line change 1+ name : ' Build Repo'
2+ inputs :
3+ cmake-args :
4+ required : true
5+ config :
6+ required : true
7+ bin-dir :
8+ required : false
9+ runs :
10+ using : ' composite'
11+ steps :
12+ - run : |
13+ WORK_DIR=`pwd`
14+ cd ../../builds/Ray
15+ python scripts/update_version_string.py Ray.cpp
16+ mkdir build
17+ cd build
18+ cmake .. -DCMAKE_BUILD_TYPE=${{ inputs.config }} ${{ inputs.cmake-args }}
19+ cd ..
20+ cmake --build build --target all --parallel 16
21+ if [ -n "${{ inputs.bin-dir }}" ]; then
22+ mkdir $WORK_DIR/${{ inputs.bin-dir }}
23+ cp build/tests/test_Ray* $WORK_DIR/${{ inputs.bin-dir }}
24+ fi
25+ shell: bash
Original file line number Diff line number Diff line change 1+ name : ' Build Repo'
2+ inputs :
3+ cmake-args :
4+ required : true
5+ config :
6+ required : true
7+ bin-dir :
8+ required : false
9+ runs :
10+ using : ' composite'
11+ steps :
12+ - run : |
13+ WORK_DIR=`pwd`
14+ cd ../../builds/Ray
15+ python3 scripts/update_version_string.py Ray.cpp
16+ mkdir build
17+ cd build
18+ cmake .. -DCMAKE_BUILD_TYPE=${{ inputs.config }} ${{ inputs.cmake-args }}
19+ cd ..
20+ cmake --build build --target all --parallel 16
21+ if [ -n "${{ inputs.bin-dir }}" ]; then
22+ mkdir $WORK_DIR/${{ inputs.bin-dir }}
23+ cp build/tests/test_Ray $WORK_DIR/${{ inputs.bin-dir }}
24+ fi
25+ shell: bash
Original file line number Diff line number Diff line change 1+ name : ' Build Repo'
2+ inputs :
3+ cmake-args :
4+ required : true
5+ config :
6+ required : true
7+ bin-dir :
8+ required : false
9+ runs :
10+ using : ' composite'
11+ steps :
12+ - run : |
13+ $WORK_DIR = Get-Location
14+ cd ../../builds/Ray
15+ python scripts/update_version_string.py Ray.cpp
16+ function Invoke-Environment {
17+ param
18+ (
19+ # Any cmd shell command, normally a configuration batch file.
20+ [Parameter(Mandatory=$true)]
21+ [string] $Command
22+ )
23+
24+ $Command = "`"" + $Command + "`""
25+ cmd /c "$Command > nul 2>&1 && set" | . { process {
26+ if ($_ -match '^([^=]+)=(.*)') {
27+ [System.Environment]::SetEnvironmentVariable($matches[1], $matches[2])
28+ }
29+ }}
30+ }
31+ if (Test-Path "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat") { Invoke-Environment "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat" }
32+ if (Test-Path "D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat") { Invoke-Environment "D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat" }
33+ mkdir build
34+ cd build
35+ cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=${{ inputs.config }} ${{ inputs.cmake-args }}
36+ cd ..
37+ cmake --build build --config ${{ inputs.config }} --parallel 16
38+ if ("${{ inputs.bin-dir }}" -ne "") {
39+ mkdir $WORK_DIR/${{ inputs.bin-dir }}
40+ copy build/tests/test_Ray.exe $WORK_DIR/${{ inputs.bin-dir }}
41+ }
42+ shell: pwsh
Original file line number Diff line number Diff line change 1+ name : ' Build Repo'
2+ inputs :
3+ cmake-args :
4+ required : true
5+ config :
6+ required : true
7+ bin-dir :
8+ required : false
9+ runs :
10+ using : ' composite'
11+ steps :
12+ - run : |
13+ WORK_DIR=`pwd`
14+ cd ../../builds/Ray
15+ python scripts/update_version_string.py Ray.cpp
16+ mkdir build
17+ cd build
18+ cmake .. -G "Visual Studio 17 2022" ${{ inputs.cmake-args }}
19+ cd ..
20+ cmake --build build --target ALL_BUILD --config ${{ inputs.config }} --parallel 16
21+ if [ -n "${{ inputs.bin-dir }}" ]; then
22+ mkdir $WORK_DIR/${{ inputs.bin-dir }}
23+ cp build/tests/${{ inputs.config }}/test_Ray* $WORK_DIR/${{ inputs.bin-dir }}
24+ fi
25+ shell: bash
Original file line number Diff line number Diff line change 1+ name : ' Init Repo'
2+ runs :
3+ using : ' composite'
4+ steps :
5+ - run : |
6+ REPO_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY"
7+ cd ../..
8+ mkdir -p builds
9+ cd builds
10+ if [ -d "Ray/.git" ]; then
11+ echo "Reset existing repository"
12+ cd Ray
13+ git remote set-url origin $REPO_URL
14+ git fetch --all
15+ if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
16+ GITHUB_SHA=${{ github.event.pull_request.head.sha }}
17+ fi
18+ git checkout -f $GITHUB_SHA
19+ #git reset --hard origin/$GITHUB_REF_NAME
20+ git clean -fdx
21+ git fetch --tags
22+ else
23+ echo "Clone new repository"
24+ git clone $REPO_URL -b $GITHUB_REF_NAME
25+ cd Ray
26+ git fetch --tags
27+ fi
28+ shell: bash
Original file line number Diff line number Diff line change 1+ name : ' Test'
2+ inputs :
3+ bin-name :
4+ required : false
5+ default : " test_Ray"
6+ arch :
7+ required : true
8+ bin-dir :
9+ required : true
10+ out-dir :
11+ required : true
12+ test-args :
13+ required : true
14+ runs :
15+ using : ' composite'
16+ steps :
17+ - uses : actions/download-artifact@v3
18+ with :
19+ name : ${{ inputs.bin-dir }}
20+ path : ${{ inputs.bin-dir }}/
21+ - run : |
22+ export ASAN_OPTIONS="windows_hook_legacy_allocators=false"
23+ chmod +x ./${{ inputs.bin-dir }}/${{ inputs.bin-name }}
24+ WORK_DIR=`pwd`
25+ mkdir $WORK_DIR/${{ inputs.out-dir }}
26+ cd ../../builds/Ray/tests
27+ arch ${{ inputs.arch }} $WORK_DIR/${{ inputs.bin-dir }}/${{ inputs.bin-name }} ${{ inputs.test-args }} | tee $WORK_DIR/${{ inputs.out-dir }}/test_Ray_output.txt
28+ shell: bash
29+ - run : |
30+ WORK_DIR=`pwd`
31+ cd ../../builds/Ray/tests
32+ cp test_data/errors.txt $WORK_DIR/${{ inputs.out-dir }} || true
33+ if: always()
34+ shell: bash
Original file line number Diff line number Diff line change 1+ name : ' Test'
2+ inputs :
3+ bin-dir :
4+ required : true
5+ out-dir :
6+ required : true
7+ test-args :
8+ required : true
9+ sde-args :
10+ required : true
11+ runs :
12+ using : ' composite'
13+ steps :
14+ - uses : actions/download-artifact@v3
15+ with :
16+ name : ${{ inputs.bin-dir }}
17+ path : ${{ inputs.bin-dir }}/
18+ - run : |
19+ chmod +x ./${{ inputs.bin-dir }}/test_Ray
20+ WORK_DIR=`pwd`
21+ mkdir $WORK_DIR/${{ inputs.out-dir }}
22+ cd ../../builds/Ray/tests
23+ sde ${{ inputs.sde-args }} -- $WORK_DIR/${{ inputs.bin-dir }}/test_Ray ${{ inputs.test-args }} | tee $WORK_DIR/${{ inputs.out-dir }}/test_Ray_output.txt
24+ shell: bash
25+ - run : |
26+ WORK_DIR=`pwd`
27+ cd ../../builds/Ray/tests
28+ cp test_data/errors.txt $WORK_DIR/${{ inputs.out-dir }} || true
29+ if: always()
30+ shell: bash
Original file line number Diff line number Diff line change 1+ name : ' Test'
2+ inputs :
3+ bin-name :
4+ required : false
5+ default : " test_Ray"
6+ bin-dir :
7+ required : true
8+ out-dir :
9+ required : true
10+ test-args :
11+ required : true
12+ runs :
13+ using : ' composite'
14+ steps :
15+ - uses : actions/download-artifact@v3
16+ with :
17+ name : ${{ inputs.bin-dir }}
18+ path : ${{ inputs.bin-dir }}/
19+ - run : |
20+ export ASAN_OPTIONS="windows_hook_legacy_allocators=false"
21+ chmod +x ./${{ inputs.bin-dir }}/${{ inputs.bin-name }}
22+ WORK_DIR=`pwd`
23+ mkdir $WORK_DIR/${{ inputs.out-dir }}
24+ cd ../../builds/Ray/tests
25+ $WORK_DIR/${{ inputs.bin-dir }}/${{ inputs.bin-name }} ${{ inputs.test-args }} | tee $WORK_DIR/${{ inputs.out-dir }}/test_Ray_output.txt
26+ shell: bash
27+ - run : |
28+ WORK_DIR=`pwd`
29+ cd ../../builds/Ray/tests
30+ cp test_data/errors.txt $WORK_DIR/${{ inputs.out-dir }} || true
31+ if: always()
32+ shell: bash
You can’t perform that action at this time.
0 commit comments