feat: add function for parsing version from version.txt #29
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - '*' | |
| workflow_dispatch: | |
| jobs: | |
| test_linux: | |
| strategy: | |
| matrix: | |
| image: [ | |
| "test_debian:bullseye", | |
| "test_debian:bookworm", | |
| "test_debian:trixie", | |
| "test_ubuntu:2004", | |
| "test_ubuntu:2204", | |
| "test_ubuntu:2404", | |
| "test_fedora:41", | |
| "test_fedora:42" | |
| ] | |
| cmdopt: [ "-P ./CMakeLists.txt", "." ] | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/cmakelib/${{ matrix.image }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Init CMakelib | |
| run: | | |
| git clone "https://github.com/cmakelib/cmakelib.git" | |
| echo "CMLIB_DIR=$(pwd)/cmakelib" >> $GITHUB_ENV | |
| - name: Run tests | |
| run: | | |
| cd test/ && cmake ${{ matrix.cmdopt }} | |
| test_windows: | |
| strategy: | |
| matrix: | |
| cmdopt: [ "-P ./CMakeLists.txt", "." ] | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Init CMakelib | |
| run: | | |
| git clone "https://github.com/cmakelib/cmakelib.git" | |
| - name: Run tests | |
| run: | | |
| $Env:CMLIB_DIR=$(Join-Path -Path $(Get-Location).Path -ChildPath "cmakelib") | |
| $Env:CMLIB_DIR | |
| cd test/ | |
| cmake ${{ matrix.cmdopt }} | |
| test_macos: | |
| strategy: | |
| matrix: | |
| cmdopt: [ "-P ./CMakeLists.txt", "." ] | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Init CMakelib | |
| run: | | |
| git clone "https://github.com/cmakelib/cmakelib.git" | |
| echo "CMLIB_DIR=$(pwd)/cmakelib" >> $GITHUB_ENV | |
| - name: Run tests | |
| run: | | |
| cd test/ && cmake ${{ matrix.cmdopt }} |