File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : testMacOS
2+
3+ on :
4+ push :
5+ branches :
6+ - ' **' # Run on all branches
7+ tags-ignore :
8+ - ' v*' # Ignore tag pushes matching 'v*'
9+ pull_request :
10+ branches :
11+ - ' **' # Run for all pull requests
12+
13+ env :
14+ BUILD_TYPE : Release
15+
16+ jobs :
17+ build :
18+ if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
19+ runs-on : macos-14
20+
21+ steps :
22+ - uses : actions/checkout@v4
23+ with :
24+ submodules : ' recursive'
25+
26+ - name : Install dependencies (Homebrew)
27+ run : |
28+ brew update
29+ brew install cmake boost gtk+3 hdf5
30+
31+ - name : Configure CMake
32+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DRAYX_WERROR=ON -DRAYX_REQUIRE_CUDA=OFF
33+
34+ - name : Build
35+ run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
36+
37+ - name : Run
38+ working-directory : ${{github.workspace}}
39+ run : |
40+ ./build/bin/release/rayx -x -c -m 1 -i Intern/rayx-core/tests/input/BoringImagePlane.rml
41+ ./build/bin/release/rayx -x -m 1 -i Intern/rayx-core/tests/input/BoringImagePlane.rml
42+ git checkout -- Intern/rayx-core/tests/input/BoringImagePlane.csv
43+
44+ - name : Test
45+ working-directory : ${{github.workspace}}/build/bin/release
46+ run : ./rayx-core-tst -x
47+
48+ - name : Upload artifact
49+ uses : actions/upload-artifact@v4
50+ with :
51+ name : RAYX-macOS-${{env.BUILD_TYPE}}
52+ path : ${{github.workspace}}/build/bin/release
You can’t perform that action at this time.
0 commit comments