|
| 1 | +name: macOS-Release |
| 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 |
0 commit comments