File tree Expand file tree Collapse file tree 1 file changed +0
-41
lines changed
Expand file tree Collapse file tree 1 file changed +0
-41
lines changed Original file line number Diff line number Diff line change 6868 path : |
6969 build/cmaple
7070 build/cmaple-aa
71- build-macos-12 :
72- runs-on : macos-12
73- steps :
74- - name : Checkout code
75- uses : actions/checkout@v4
76- - name : Install dependencies
77- run : |
78- brew update && brew install libomp ninja
79- - name : Construct flags
80- id : libomp-prefix
81- run : |
82- PREFIX=$(brew --prefix libomp)
83- CMAKE_C_FLAGS="-I${PREFIX}/include -L${PREFIX}/lib"
84- CMAKE_CXX_FLAGS="-I${PREFIX}/include -L${PREFIX}/lib"
85- for var in PREFIX CMAKE_C_FLAGS CMAKE_CXX_FLAGS; do
86- echo $var=${!var}
87- echo $var=${!var} >> "$GITHUB_OUTPUT"
88- done
89- - name : Configure and Build Project
90- uses : threeal/cmake-action@main
91- with :
92- generator : Ninja
93- c-compiler : clang
94- cxx-compiler : clang++
95- c-flags : ${{ steps.libomp-prefix.outputs.CMAKE_C_FLAGS }}
96- cxx-flags : ${{ steps.libomp-prefix.outputs.CMAKE_CXX_FLAGS }}
97- - name : Simple test
98- run : |
99- for exe in "./build/cmaple" "./build/cmaple-aa"; do
100- chmod +x $exe
101- file $exe
102- $exe
103- $exe --help
104- done
105- - name : Upload artifact
106- uses : actions/upload-artifact@v4
107- with :
108- name : ${{ runner.os }}-${{ runner.arch }}-build
109- path : |
110- build/cmaple
111- build/cmaple-aa
11271 build-macos-14 :
11372 runs-on : macos-14
11473 steps :
You can’t perform that action at this time.
0 commit comments