Skip to content

Commit

Permalink
CI: macos-gcc add debug tmate
Browse files Browse the repository at this point in the history
	modified:   .github/workflows/macos-gcc.yml
	modified:   .gitignore
  • Loading branch information
Sajid Ali committed Jun 17, 2024
1 parent 1451c1c commit acfbd85
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/macos-gcc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
name: CI:macOS-gcc

on:
workflow_dispatch:
inputs:
debug_cmake_enabled:
description: 'tmate before cmake'
required: false
default: false
debug_tests_enabled:
description: 'tmate before ctest'
required: false
default: false
push:
branches: [ devel3 ]
paths-ignore:
Expand Down Expand Up @@ -47,6 +57,13 @@ jobs:
# Build h5py from source using the Homebrew installed hdf5
HDF5_DIR=$(brew --prefix hdf5) python3 -m pip install --no-binary=h5py h5py
# Debug: checkpoint at which to open tmate session
- name: macos-clang pre CMake
uses: mxschmitt/action-tmate@v3
if: ${{github.event_name == 'workflow_dispatch' && github.event.inputs.debug_cmake_enabled }}
with:
sudo: false

- name: CMake
run: |
uname -a
Expand All @@ -66,6 +83,13 @@ jobs:
source ${{github.workspace}}/synergia-env/bin/activate
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
# Debug: checkpoint at which to open tmate session
- name: macos-clang pre ctest
uses: mxschmitt/action-tmate@v3
if: ${{github.event_name == 'workflow_dispatch' && github.event.inputs.debug_tests_enabled }}
with:
sudo: false

- name: ctest
# Execute tests defined by the CMake configuration.
run: |
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,5 @@ compile_commands.json
# created by pixi
.pixi

# created by python virtualenv
synergia-env/**

0 comments on commit acfbd85

Please sign in to comment.