|
| 1 | +# Copyright 2025 Intel Corporation |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +name: Linux Build and Test on ARM |
| 16 | + |
| 17 | +on: |
| 18 | + push: |
| 19 | + branches: |
| 20 | + - main |
| 21 | + pull_request: |
| 22 | + |
| 23 | +permissions: |
| 24 | + contents: read |
| 25 | + |
| 26 | +# This allows a subsequently queued workflow run to interrupt previous runs |
| 27 | +concurrency: |
| 28 | + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' |
| 29 | + cancel-in-progress: true |
| 30 | + |
| 31 | +jobs: |
| 32 | + build: |
| 33 | + name: ${{ matrix.cxx }}, ${{ matrix.build_type }} |
| 34 | + runs-on: ubuntu-22.04-arm |
| 35 | + strategy: |
| 36 | + matrix: |
| 37 | + build_type: [RelWithDebugInfo] |
| 38 | + cxx: [g++-11, g++-12, clang++-15] |
| 39 | + include: |
| 40 | + - cxx: g++-11 |
| 41 | + cc: gcc-11 |
| 42 | + - cxx: g++-12 |
| 43 | + cc: gcc-12 |
| 44 | + - cxx: clang++-15 |
| 45 | + cc: clang-15 |
| 46 | + |
| 47 | + steps: |
| 48 | + - uses: actions/checkout@v4 |
| 49 | + |
| 50 | + - name: Configure build |
| 51 | + working-directory: ${{ runner.temp }} |
| 52 | + env: |
| 53 | + CXX: ${{ matrix.cxx }} |
| 54 | + CC: ${{ matrix.cc }} |
| 55 | + TEMP_WORKSPACE: ${{ runner.temp }} |
| 56 | + run: | |
| 57 | + cmake -B${TEMP_WORKSPACE}/build -S${GITHUB_WORKSPACE} \ |
| 58 | + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ |
| 59 | + -DSVS_BUILD_BINARIES=YES \ |
| 60 | + -DSVS_BUILD_TESTS=YES \ |
| 61 | + -DSVS_BUILD_EXAMPLES=YES \ |
| 62 | + -DSVS_EXPERIMENTAL_LEANVEC=YES |
| 63 | +
|
| 64 | + - name: Build Tests and Utilities |
| 65 | + working-directory: ${{ runner.temp }}/build |
| 66 | + run: make -j$(nproc) |
| 67 | + |
| 68 | + - name: Run tests |
| 69 | + env: |
| 70 | + CTEST_OUTPUT_ON_FAILURE: 1 |
| 71 | + working-directory: ${{ runner.temp }}/build/tests |
| 72 | + run: ctest -C ${{ matrix.build_type }} |
0 commit comments