|
| 1 | +name: ARM-build |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - 'main' |
| 7 | + - 'master' |
| 8 | + - 'develop' |
| 9 | + - 'release/**' |
| 10 | + tags: |
| 11 | + - '**' |
| 12 | + pull_request: |
| 13 | + types: [opened,synchronize] |
| 14 | + paths-ignore: |
| 15 | + - 'doc/**' |
| 16 | + workflow_dispatch: |
| 17 | + inputs: |
| 18 | + debug_enabled: |
| 19 | + description: 'Run the build with tmate debugging enabled by `debug_enabled` keyword (https://github.com/marketplace/actions/debugging-with-tmate)' |
| 20 | + required: false |
| 21 | + default: false |
| 22 | + |
| 23 | +concurrency: |
| 24 | + group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }} |
| 25 | + cancel-in-progress: true |
| 26 | + |
| 27 | +jobs: |
| 28 | + arm-omp: |
| 29 | + strategy: |
| 30 | + fail-fast: false |
| 31 | + matrix: |
| 32 | + config: |
| 33 | + - {shared: "ON", build_type: "Debug", name: "arm/omp/debug/shared", mixed: "OFF", half: "ON", bfloat16: "OFF"} |
| 34 | + - {shared: "OFF", build_type: "Release", name: "arm/omp/release/static", mixed: "ON", half: "ON", bfloat16: "OFF"} |
| 35 | + - {shared: "ON", build_type: "Release", name: "arm/omp/release/shared", mixed: "ON", half: "OFF", bfloat16: "ON"} |
| 36 | + - {shared: "ON", build_type: "Release", name: "arm/omp/release/shared-16bit", mixed: "ON", half: "ON", bfloat16: "ON"} |
| 37 | + name: ${{ matrix.config.name }} |
| 38 | + runs-on: [ubuntu-24.04-arm] |
| 39 | + |
| 40 | + steps: |
| 41 | + - name: Checkout the latest code (shallow clone) |
| 42 | + uses: actions/checkout@v4 |
| 43 | + |
| 44 | + - name: info |
| 45 | + run: | |
| 46 | + g++ -v |
| 47 | + cmake --version |
| 48 | +
|
| 49 | + - name: Debug over SSH (tmate) |
| 50 | + uses: mxschmitt/action-tmate@v3.5 |
| 51 | + if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} |
| 52 | + |
| 53 | + - name: configure |
| 54 | + run: | |
| 55 | + mkdir build |
| 56 | + mkdir install |
| 57 | + export INSTALL_PREFIX=`pwd`/install |
| 58 | + cd build |
| 59 | + cmake .. -DCMAKE_CXX_FLAGS="-Wpedantic -ffp-contract=off" -DBUILD_SHARED_LIBS=${{ matrix.config.shared }} -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} -DGINKGO_MIXED_PRECISION=${{ matrix.config.mixed }} -DGINKGO_ENABLE_HALF=${{ matrix.config.half }} -DGINKGO_ENABLE_BFLOAT16=${{ matrix.config.bfloat16 }} |
| 60 | + make -j4 |
| 61 | + ctest -j4 --output-on-failure |
| 62 | +
|
| 63 | + - name: install |
| 64 | + run: | |
| 65 | + cd build |
| 66 | + make install |
| 67 | + make test_install |
0 commit comments