just a cast needed for runtimerror #541
Workflow file for this run
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
| # The following configuration is used to setup GitHub Actions | |
| # for building (and running unit tests) on pushes and PRs. | |
| # At the moment, we build on two runner types: Linux and MacOS, | |
| # specific version information can be found further below. | |
| name: Build On Changes | |
| on: [pull_request] | |
| jobs: | |
| build-ubuntu24: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Get HEAD and submodules | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| submodules: 'recursive' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install xsltproc -y | |
| - name: Install sac2c | |
| run: | | |
| git clone --recursive --single-branch https://gitlab.sac-home.org/sac-group/sac2c.git | |
| cd sac2c | |
| make release -j2 | |
| cp build_p/sac2c_p /usr/local/bin/sac2c | |
| sac2c -V | |
| - name: Create build dir | |
| run: | | |
| cmake -E make_directory ${{runner.workspace}}/build | |
| - name: Configure build-system | |
| shell: bash | |
| working-directory: ${{runner.workspace}}/build | |
| run: cmake -DLINKSETSIZE=200 $GITHUB_WORKSPACE | |
| - name: Build | |
| shell: bash | |
| working-directory: ${{runner.workspace}}/build | |
| run: | | |
| cmake --build . -j4 2>&1 | tee build.log | |
| if [ ${PIPESTATUS[0]} -ne 0 ]; then | |
| echo "!!! ERROR detected in build !!!"; | |
| exit 1; | |
| fi | |
| ${GITHUB_WORKSPACE}/ci/fail-on-warning.sh build.log | |
| - name: Test | |
| shell: bash | |
| working-directory: ${{runner.workspace}}/build | |
| run: | | |
| git clone --single-branch https://github.com/SacBase/IntegrationTests.git | |
| cd IntegrationTests | |
| make all | |
| ./test.sh | |
| build-macos-x86: | |
| runs-on: macos-13 | |
| steps: | |
| - name: Get HEAD and submodules | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| submodules: 'recursive' | |
| - name: Install dependencies | |
| run: | | |
| brew update | |
| brew install libxslt | |
| - name: Set XCode version | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '14.2' | |
| - name: Install sac2c | |
| run: | | |
| git clone --recursive --single-branch https://gitlab.sac-home.org/sac-group/sac2c.git | |
| cd sac2c | |
| make release -j2 | |
| cp build_p/sac2c_p /usr/local/bin/sac2c | |
| sac2c -V | |
| - name: Create build dir | |
| run: | | |
| cmake -E make_directory ${{runner.workspace}}/build | |
| - name: Configure build-system | |
| shell: bash | |
| working-directory: ${{runner.workspace}}/build | |
| run: cmake ${GITHUB_WORKSPACE} | |
| - name: Build | |
| shell: bash | |
| working-directory: ${{runner.workspace}}/build | |
| run: | | |
| cmake --build . -j4 >&1 | tee build.log | |
| if [ ${PIPESTATUS[0]} -ne 0 ]; then | |
| echo "!!! ERROR detected in build !!!"; | |
| exit 1; | |
| fi | |
| ${GITHUB_WORKSPACE}/ci/fail-on-warning.sh build.log | |
| - name: Test | |
| shell: bash | |
| working-directory: ${{runner.workspace}}/build | |
| run: | | |
| git clone --single-branch https://github.com/SacBase/IntegrationTests.git | |
| cd IntegrationTests | |
| make all | |
| ./test.sh | |
| build-macos-arm: | |
| runs-on: macos-15 | |
| steps: | |
| - name: Get HEAD and submodules | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| submodules: 'recursive' | |
| - name: Install dependencies | |
| run: | | |
| brew update | |
| brew install libxslt | |
| - name: Set XCode version | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '16.2' | |
| - name: Install sac2c | |
| run: | | |
| git clone --recursive --single-branch https://gitlab.sac-home.org/sac-group/sac2c.git | |
| cd sac2c | |
| make release -j2 | |
| cp build_p/sac2c_p /usr/local/bin/sac2c | |
| sac2c -V | |
| - name: Create build dir | |
| run: | | |
| cmake -E make_directory ${{runner.workspace}}/build | |
| - name: Configure build-system | |
| shell: bash | |
| working-directory: ${{runner.workspace}}/build | |
| run: cmake ${GITHUB_WORKSPACE} | |
| - name: Build | |
| shell: bash | |
| working-directory: ${{runner.workspace}}/build | |
| run: | | |
| cmake --build . -j3 2>&1 | tee build.log | |
| if [ ${PIPESTATUS[0]} -ne 0 ]; then | |
| echo "!!! ERROR detected in build !!!"; | |
| exit 1; | |
| fi | |
| ${GITHUB_WORKSPACE}/ci/fail-on-warning.sh build.log | |
| - name: Test | |
| shell: bash | |
| working-directory: ${{runner.workspace}}/build | |
| run: | | |
| git clone --single-branch https://github.com/SacBase/IntegrationTests.git | |
| cd IntegrationTests | |
| make all | |
| ./test.sh |