Skip to content

Commit

Permalink
ci tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
strasdat committed Jun 9, 2024
1 parent ac128dc commit 43a1d8c
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,37 @@ jobs:
include:
- os: ubuntu-22.04
build_type: Release
row_major: ON
access: row_major
test: unit_tests
- os: ubuntu-22.04
build_type: RelWithDebInfo
row_major: OFF
access: col_major
test: unit_tests
- os: ubuntu-24.04
build_type: RelWithDebInfo
row_major: OFF
access: col_major
test: unit_tests
- os: macos-13
build_type: RelWithDebInfo
row_major: OFF
access: col_major
test: unit_tests
- os: macos-14
build_type: RelWithDebInfo
row_major: OFF
access: col_major
test: unit_tests
fail-fast: false
env:
ROW_MAJOR_DEFAULT: ${{ matrix.row_major }}

steps:
- name: Set default value for ROW_MAJOR_DEFAULT
run: echo "ROW_MAJOR_DEFAULT=OFF" >> $GITHUB_ENV

- name: Update ROW_MAJOR_DEFAULT if condition is met
if: matrix.access == 'row_major'
run: echo "ROW_MAJOR_DEFAULT=ON" >> $GITHUB_ENV

- name: Print ROW_MAJOR_DEFAULT
run: echo $ROW_MAJOR_DEFAULT

- uses: actions/checkout@v2

- name: ccache
Expand All @@ -47,4 +60,4 @@ jobs:
if: matrix.os == 'macos-14' || matrix.os == 'macos-13'

- name: Run tests
run: ./scripts/run_cpp_tests.sh
run: ./scripts/run_cpp_tests.sh

0 comments on commit 43a1d8c

Please sign in to comment.