Improve error_on_const_read logic for arrays and more direct array reading #4223
This file contains 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: clang | |
on: | |
push: | |
branches: | |
- main | |
- feature/* | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: [main] | |
paths-ignore: | |
- '**.md' | |
workflow_dispatch: | |
env: | |
BUILD_TYPE: Debug | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
run: cmake --build build --config ${{env.BUILD_TYPE}} -j 3 | |
- name: Test | |
working-directory: build | |
run: ctest -C ${{env.BUILD_TYPE}} -j 3 --output-on-failure |