Skip to content

Commit

Permalink
update build and test to also show compiler while additionally listin…
Browse files Browse the repository at this point in the history
…g working dir on windows to investigate test failures
  • Loading branch information
EmilDohne committed Jul 7, 2024
1 parent c394420 commit 1ea1736
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cmake-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.3'
- name: Configure CMake ${{ matrix.os }}
- name: Configure CMake ${{ matrix.os }}-${{ matrix.compilercxx }}
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
env:
Expand All @@ -57,7 +57,7 @@ jobs:
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPSAPI_BUILD_DOCS=OFF -DPSAPI_BUILD_BENCHMARKS=OFF -DPSAPI_BUILD_TESTS=OFF -DPSAPI_BUILD_PYTHON=OFF
- name: Build ${{ matrix.os }}
- name: Build ${{ matrix.os }}-${{ matrix.compilercxx }}
# Build your program with the given configuration
env:
CC: ${{ matrix.compiler }}
Expand All @@ -72,11 +72,11 @@ jobs:
with:
python-version: '3.10'

- name: Generate artifacts for ${{ matrix.os }}
- name: Generate artifacts for ${{ matrix.os }}-${{ matrix.compilercxx }}
run: python scripts/generate_release.py --build-dir ${{github.workspace}}/build

- name: Upload Release Artifacts
uses: actions/upload-artifact@v3
with:
name: PhotoshopAPI-${{ matrix.os }}
name: PhotoshopAPI-${{ matrix.os }}-${{ matrix.compilercxx }}
path: ${{github.workspace}}/release
12 changes: 9 additions & 3 deletions .github/workflows/cmake-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,25 @@ jobs:
with:
xcode-version: '15.3'

- name: Configure CMake ${{ matrix.os }}
- name: Configure CMake ${{ matrix.os }}-${{ matrix.compilercxx }}
env:
CC: ${{ matrix.compiler }}
CXX: ${{ matrix.compilercxx }}
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPSAPI_BUILD_DOCS=OFF -DPSAPI_BUILD_BENCHMARKS=OFF -DPSAPI_BUILD_EXAMPLES=OFF -DPSAPI_BUILD_PYTHON=OFF
- name: Build ${{ matrix.os }}
- name: Build ${{ matrix.os }}-${{ matrix.compilercxx }}
env:
CC: ${{ matrix.compiler }}
CXX: ${{ matrix.compilercxx }}
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: List working dir on Windows
working-directory: ${{github.workspace}}/build/PhotoshopTest
if: runner.os == 'Windows'
run: dir


- name: Test ${{ matrix.os }}
- name: Test ${{ matrix.os }}-${{ matrix.compilercxx }}
working-directory: ${{github.workspace}}/build/PhotoshopTest
run: ctest -C ${{env.BUILD_TYPE}} --extra-verbose --stop-on-failure

0 comments on commit 1ea1736

Please sign in to comment.