Skip to content

Commit 8e07d5a

Browse files
committed
Testing: Compute CMake URL from version number
1 parent 6f1914d commit 8e07d5a

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/pull_request.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,17 @@ on:
1010

1111
jobs:
1212
smoke_test:
13-
name: Smoke Test ( CMake ${{ matrix.cmake.version }} )
13+
name: Smoke Test (CMake v${{ matrix.cmake.version }})
1414
runs-on: ubuntu-latest
1515
container: swift:6.1-bookworm
1616
strategy:
1717
matrix:
1818
cmake:
19-
- version: v3.22.6
20-
url: "https://github.com/Kitware/CMake/releases/download/v3.22.6/cmake-3.22.6-linux-x86_64.tar.gz"
19+
- version: 3.22.6
2120
hash: 09e1b34026c406c5bf4d1b053eadb3a8519cb360e37547ebf4b70ab766d94fbc
22-
- version: v3.26.6
23-
url: "https://github.com/Kitware/CMake/releases/download/v3.26.6/cmake-3.26.6-linux-x86_64.tar.gz"
21+
- version: 3.26.6
2422
hash: 2dd48ccd3e3d872ee4cc916f3f4e24812612421007e895f82bf9fc7e49831d62
25-
- version: v3.30.8
26-
url: "https://github.com/Kitware/CMake/releases/download/v3.30.8/cmake-3.30.8-linux-x86_64.tar.gz"
23+
- version: 3.30.8
2724
hash: adc81f2944e6f86b44e86acea3abea1651ed7890206933484b8b74ac1280314f
2825
steps:
2926
- name: Clone Repo
@@ -37,7 +34,7 @@ jobs:
3734
id: install-cmake
3835
uses: ./swift-cmake-examples/.github/actions/cmake-action
3936
with:
40-
url: ${{ matrix.cmake.url }}
37+
url: "https://github.com/Kitware/CMake/releases/download/v${{matrix.cmake.version}}/cmake-${{matrix.cmake.version}}-linux-x86_64.tar.gz"
4138
hash: ${{ matrix.cmake.hash }}
4239
- name: Run Tests
4340
shell: bash

0 commit comments

Comments
 (0)