Skip to content

Commit ad06500

Browse files
committed
website-examples.1
Signed-off-by: Cary Phillips <cary@ilm.com>
1 parent 2aecbe2 commit ad06500

1 file changed

Lines changed: 26 additions & 8 deletions

File tree

.github/workflows/ci_steps.yml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,19 +214,37 @@ jobs:
214214
share/ci/scripts/validate_install.py "_build/$INSTALL_MANIFEST" "share/ci/install_manifest/$INSTALL_MANIFEST"
215215
shell: bash
216216

217-
- name: Website src
217+
- name: Website examples
218+
if: inputs.namespace == '' && inputs.msystem == ''
218219
run: |
220+
set -x
219221
INSTALL_DIR=$GITHUB_WORKSPACE/_install
220222
EXRWRITER_BUILD_DIR=$GITHUB_WORKSPACE/_build.exrwriter
221-
cmake -S website/src/exrwriter -B $EXRWRITER_BUILD_DIR -DCMAKE_PREFIX_PATH=$INSTALL_DIR
222-
cmake --build $EXRWRITER_BUILD_DIR
223+
cmake -S website/src/exrwriter -B $EXRWRITER_BUILD_DIR \
224+
-DCMAKE_PREFIX_PATH=$INSTALL_DIR \
225+
-DCMAKE_BUILD_TYPE=${{ inputs.build-type }}
226+
cmake --build $EXRWRITER_BUILD_DIR --config ${{ inputs.build-type }}
223227
if [[ "$RUNNER_OS" == "Windows" ]]; then
224-
$EXRWRITER_BUILD_DIR/bin/"${{ inputs.build-type }}"/exrwriter.exe || true
228+
$EXRWRITER_BUILD_DIR/bin/"${{ inputs.build-type }}"/exrwriter.exe
225229
else
226-
$EXRWRITER_BUILD_DIR/bin/exrwriter
230+
$EXRWRITER_BUILD_DIR/exrwriter
231+
EXRINFO=$INSTALL_DIR/bin/exrinfo
232+
if [ -x "$EXRINFO" ]; then
233+
"$EXRINFO" hello.exr
234+
fi
227235
fi
236+
shell: bash
228237

238+
- name: Website examples
239+
if: inputs.namespace == '' && inputs.msystem != ''
240+
run: |
241+
set -x
242+
INSTALL_DIR=$GITHUB_WORKSPACE/_install
243+
EXRWRITER_BUILD_DIR=$GITHUB_WORKSPACE/_build.exrwriter
244+
cmake -S website/src/exrwriter -B $EXRWRITER_BUILD_DIR \
245+
-DCMAKE_PREFIX_PATH=$INSTALL_DIR \
246+
-DCMAKE_BUILD_TYPE=${{ inputs.build-type }}
247+
cmake --build $EXRWRITER_BUILD_DIR --config ${{ inputs.build-type }}
248+
$EXRWRITER_BUILD_DIR/bin/"${{ inputs.build-type }}"/exrwriter.exe || true
249+
shell: msys2 {0}
229250

230-
231-
shell: bash
232-

0 commit comments

Comments
 (0)