Skip to content

Commit bdf604c

Browse files
committed
remove build-macos-12 since it's deprecated
1 parent 392ab48 commit bdf604c

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -68,47 +68,6 @@ jobs:
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:

0 commit comments

Comments
 (0)