| 1 | # Copyright (c) 2021-2024 [Ribose Inc](https://www.ribose.com). |
| 2 | # All rights reserved. |
| 3 | # This file is a part of libemf2svg |
| 4 | # |
| 5 | # Redistribution and use in source and binary forms, with or without |
| 6 | # modification, are permitted provided that the following conditions |
| 7 | # are met: |
| 8 | # 1. Redistributions of source code must retain the above copyright |
| 9 | # notice, this list of conditions and the following disclaimer. |
| 10 | # 2. Redistributions in binary form must reproduce the above copyright |
| 11 | # notice, this list of conditions and the following disclaimer in the |
| 12 | # documentation and/or other materials provided with the distribution. |
| 13 | # |
| 14 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 15 | # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
| 16 | # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 17 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS |
| 18 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 19 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 20 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 21 | # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 22 | # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 23 | # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 24 | # POSSIBILITY OF SUCH DAMAGE. |
| 25 | |
| 26 | name: emf2svg - Ubuntu-aarch64 |
| 27 | |
| 28 | on: |
| 29 | push: |
| 30 | branches: [ master ] |
| 31 | pull_request: |
| 32 | workflow_dispatch: |
| 33 | |
| 34 | concurrency: |
| 35 | group: '${{ github.workflow }}-${{ github.head_ref || github.ref_name }}' |
| 36 | cancel-in-progress: true |
| 37 | |
| 38 | env: |
| 39 | BUILD_TYPE: Release |
| 40 | |
| 41 | jobs: |
| 42 | build-and-test: |
| 43 | runs-on: ubuntu-24.04-arm |
| 44 | steps: |
| 45 | - uses: actions/checkout@v4 |
| 46 | - run: sudo apt update && sudo apt-get install -y libxml2-utils valgrind libpng-dev libfreetype-dev libfontconfig-dev |
| 47 | - run: cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} |
| 48 | - run: cmake --build build --config ${{ env.BUILD_TYPE }} |
| 49 | - run: ./tests/resources/check_correctness.sh -r -s |
| 50 | - run: ./tests/resources/check_correctness.sh -r -s -e tests/resources/emf-corrupted/ -xN |
| 51 | - run: ./tests/resources/check_correctness.sh -r -s -e tests/resources/emf-ea/ |