Debian Codegraph @

.github/workflows/emf2svg-alpine-x86_64.yml

raw symbols SCIP
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 - Alpine-x86_64
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 jobs:
39 build-and-test:
40 runs-on: ubuntu-latest
41 container:
42 image: alpine:latest
43 env:
44 BUILD_TYPE: Release
45 VCPKG_FORCE_SYSTEM_BINARIES: 1
46 steps:
47 - run: apk --no-cache add build-base cmake git valgrind argp-standalone gcompat clang gperf flex bison gettext-dev python3 ninja zip unzip curl pkgconfig libxml2-utils font-noto-hebrew font-noto-arabic libpng freetype fontconfig libuuid autoconf autoconf-archive automake libtool
48 - uses: actions/checkout@v4
49 with:
50 submodules: recursive
51 - run: git config --global --add safe.directory $(pwd)
52 - run: mkdir -p cache && echo "VCPKG_DEFAULT_BINARY_CACHE=$(pwd)/cache" >> $GITHUB_ENV
53 - uses: actions/cache@v4
54 with:
55 path: cache
56 key: ${{ github.workflow }}-vcpkg-${{ hashFiles('.git/modules/*/HEAD') }}
57 - run: cmake -B build -G Ninja -DCMAKE_MAKE_PROGRAM=ninja -DVCPKG_TARGET_TRIPLET=x64-linux -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
58 - run: ninja -C build
59 - run: ./tests/resources/check_correctness.sh -r -s
60 - run: ./tests/resources/check_correctness.sh -r -s -e tests/resources/emf-corrupted/ -xN
61 - run: ./tests/resources/check_correctness.sh -r -s -e tests/resources/emf-ea/
62