Update CONTRIBUTING.md #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
smoke_test: | |
name: Smoke Test (CMake v${{ matrix.cmake.version }}) | |
runs-on: ubuntu-latest | |
container: swift:6.1-bookworm | |
strategy: | |
matrix: | |
cmake: | |
- version: 3.22.6 | |
hash: 09e1b34026c406c5bf4d1b053eadb3a8519cb360e37547ebf4b70ab766d94fbc | |
- version: 3.26.6 | |
hash: 2dd48ccd3e3d872ee4cc916f3f4e24812612421007e895f82bf9fc7e49831d62 | |
- version: 3.30.8 | |
hash: adc81f2944e6f86b44e86acea3abea1651ed7890206933484b8b74ac1280314f | |
- version: 4.0.1 | |
hash: d66c11c010588c8256ee20a26b45977cd5b2f4aee2b742d4b8a353769940d147 | |
steps: | |
- name: Clone Repo | |
uses: actions/checkout@v4 | |
with: | |
path: ./swift-cmake-examples | |
- name: Install Dependencies | |
shell: bash | |
run: apt update && apt install -y curl ninja-build | |
- name: Setup CMake | |
id: install-cmake | |
uses: ./swift-cmake-examples/.github/actions/cmake-action | |
with: | |
url: "https://github.com/Kitware/CMake/releases/download/v${{matrix.cmake.version}}/cmake-${{matrix.cmake.version}}-linux-x86_64.tar.gz" | |
hash: ${{ matrix.cmake.hash }} | |
- name: Run Tests | |
shell: bash | |
run: | | |
"${{ steps.install-cmake.outputs.cmake }}" -G Ninja -B test -S swift-cmake-examples -DCMAKE_BUILD_TYPE=Release | |
"${{ steps.install-cmake.outputs.ctest }}" --output-on-failure --test-timeout 150 --test-dir test -j |