Skip to content

Commit

Permalink
Change: to loop through the matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
mjshakir committed May 29, 2024
1 parent 9664dff commit 0516877
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/macos_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
fi
- name: Install dependencies
run: ${{ matrix.install }}
run: ${{ matrix.config.install }}

- name: Setup CMake and Ninja
uses: lukka/[email protected]
Expand All @@ -65,7 +65,7 @@ jobs:
run: mkdir build

- name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmake_opts }}
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release ${{ matrix.config.cmake_opts }}

- name: Build
run: cmake --build build --config Release
4 changes: 2 additions & 2 deletions .github/workflows/macos_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
fi
- name: Install dependencies
run: ${{ matrix.install }}
run: ${{ matrix.config.install }}

- name: Setup CMake and Ninja
uses: lukka/[email protected]
Expand All @@ -65,7 +65,7 @@ jobs:
run: mkdir build

- name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmake_opts }}
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release ${{ matrix.config.cmake_opts }}

- name: Build
run: cmake --build build --config Release
9 changes: 2 additions & 7 deletions .github/workflows/windows_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,7 @@ jobs:
- name: Install Dependencies
run: |
$dependencies = @(
'boost:x64-windows',
'gtest:x64-windows',
'tbb:x64-windows',
'fmt:x64-windows'
)
$dependencies = @(${{ matrix.config.dependencies }})
foreach ($dep in $dependencies) {
.\vcpkg\vcpkg.exe install $dep
}
Expand Down Expand Up @@ -127,7 +122,7 @@ jobs:
if: steps.check_msvc.outputs.skip_step != 'true'
run: |
echo "CMAKE_TOOLCHAIN_FILE is: $env:CMAKE_TOOLCHAIN_FILE"
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake ${{ matrix.cmake_opts }}
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$env:CMAKE_TOOLCHAIN_FILE ${{ matrix.config.cmake_opts }}
- name: List build directory contents
run: Get-ChildItem -Recurse build/
Expand Down

0 comments on commit 0516877

Please sign in to comment.