Skip to content

Commit e750dec

Browse files
Issues/0183 compile brew head (#184)
* add mac workflow using brew * move mac brew based CI to mac_brew.yml * disable gentoo-clang docker
1 parent 7ad9797 commit e750dec

File tree

3 files changed

+97
-67
lines changed

3 files changed

+97
-67
lines changed

.github/workflows/docker_linuxes.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,13 @@ jobs:
246246
- name: Run unit tests (ctest) within the Docker image
247247
run: docker run ctl:latest sh -c "cd ./build && ctest"
248248

249-
gentoo-clang:
250-
runs-on: ubuntu-latest
251-
steps:
252-
- uses: actions/checkout@v4
253-
- name: Build the Docker image
254-
run: docker build --no-cache --rm -f ./docker/Dockerfile_gentoo_clang -t ctl:latest .
249+
# gentoo-clang:
250+
# runs-on: ubuntu-latest
251+
# steps:
252+
# - uses: actions/checkout@v4
253+
# - name: Build the Docker image
254+
# run: docker build --no-cache --rm -f ./docker/Dockerfile_gentoo_clang -t ctl:latest .
255255

256-
- name: Run unit tests (ctest) within the Docker image
257-
run: docker run ctl:latest sh -c "cd ./build && ctest"
256+
# - name: Run unit tests (ctest) within the Docker image
257+
# run: docker run ctl:latest sh -c "cd ./build && ctest"
258258

.github/workflows/mac_brew.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: macOS-brew
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
7+
on:
8+
push:
9+
paths-ignore:
10+
- 'README.md'
11+
- 'doc/**'
12+
pull_request:
13+
paths-ignore:
14+
- 'README.md'
15+
- 'doc/**'
16+
17+
env:
18+
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
19+
BUILD_TYPE: Release
20+
21+
jobs:
22+
23+
build-ctl-using-brew:
24+
25+
runs-on: macos-latest
26+
27+
steps:
28+
29+
- name: install libtiff
30+
run: brew install libtiff
31+
32+
- name: install openexr
33+
run: brew install openexr
34+
35+
- name: install aces_container
36+
run: brew install aces_container
37+
38+
- uses: actions/checkout@v4
39+
40+
- name: Configure CMake
41+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
42+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
43+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
44+
45+
- name: Build
46+
# Build your program with the given configuration
47+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
48+
49+
build-and-test-using-brew:
50+
51+
runs-on: macos-latest
52+
53+
steps:
54+
55+
- name: install libtiff
56+
run: brew install libtiff
57+
58+
- name: install openexr
59+
run: brew install openexr
60+
61+
- name: install aces_container
62+
run: brew install aces_container
63+
64+
- uses: actions/checkout@v4
65+
66+
- name: Configure CMake
67+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
68+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
69+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
70+
71+
- name: Build
72+
# Build your program with the given configuration
73+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
74+
75+
- name: Test
76+
working-directory: ${{github.workspace}}/build
77+
# Execute tests defined by the CMake configuration.
78+
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
79+
run: ctest -V --output-on-failure
80+
81+
install-using-brew:
82+
83+
runs-on: macos-latest
84+
85+
steps:
86+
87+
- name: install ctl
88+
run: brew install ctl --head

.github/workflows/mac_release.yml

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,6 @@ env:
2020

2121
jobs:
2222

23-
build-openexr-brew:
24-
25-
runs-on: macos-latest
26-
27-
steps:
28-
29-
- name: install libtiff
30-
run: brew install libtiff
31-
32-
- name: install openexr
33-
run: brew install openexr
34-
35-
- name: install aces_container
36-
run: brew install aces_container
37-
38-
- uses: actions/checkout@v4
39-
40-
- name: Configure CMake
41-
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
42-
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
43-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
44-
45-
- name: Build
46-
# Build your program with the given configuration
47-
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
48-
4923
build-openexr2:
5024

5125
runs-on: macos-latest
@@ -197,39 +171,7 @@ jobs:
197171
- name: Build
198172
# Build your program with the given configuration
199173
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
200-
201-
test-openexr-brew:
202-
203-
runs-on: macos-latest
204-
205-
steps:
206-
207-
- name: install libtiff
208-
run: brew install libtiff
209-
210-
- name: install openexr
211-
run: brew install openexr
212-
213-
- name: install aces_container
214-
run: brew install aces_container
215-
216-
- uses: actions/checkout@v4
217-
218-
- name: Configure CMake
219-
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
220-
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
221-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
222-
223-
- name: Build
224-
# Build your program with the given configuration
225-
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
226-
227-
- name: Test
228-
working-directory: ${{github.workspace}}/build
229-
# Execute tests defined by the CMake configuration.
230-
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
231-
run: ctest -V --output-on-failure
232-
174+
233175
test-openexr2:
234176

235177
runs-on: macos-latest

0 commit comments

Comments
 (0)