diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b522e509..b3460c00 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 \ No newline at end of file