/
githubmirror
/
libexpat
Обзор
Документация
Войти
/
githubmirror
/
libexpat
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
.github/workflows/fil-c.yml
78 строк
3 KB
Sebastian Pipping
Make CI cover compilation and execution with Fil-C
11 авг 2026, 00:18
11 авг 2026, 00:18
6ffeda7
Код
Авторство
О чём код?
# __ __ _ # ___\ \/ /_ __ __ _| |_ # / _ \\ /| '_ \ / _` | __| # | __// \| |_) | (_| | |_ # \___/_/\_\ .__/ \__,_|\__| # |_| XML parser # # Copyright (c) 2026 Sebastian Pipping <sebastian@pipping.org> # Licensed under the MIT license: # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to permit # persons to whom the Software is furnished to do so, subject to the # following conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE # USE OR OTHER DEALINGS IN THE SOFTWARE. name: Build and test with Fil-C on: pull_request: push: schedule: - cron: '0 2 * * 5' # Every Friday at 2am workflow_dispatch: permissions: contents: read jobs: fil_c: name: Build and test with Fil-C timeout-minutes: 15 runs-on: ubuntu-24.04 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Install Fil-C toolchain run: |- version=0.683 # of 2026-08-09 dirname="filc-${version}-linux-$(uname -m)" tarball="${dirname}.tar.xz" set -x wget --progress=dot:giga "https://github.com/pizlonator/fil-c/releases/download/v${version}/${tarball}" tar xf "${tarball}" ( cd "${dirname}" && ./setup.sh ) echo "${PWD}/${dirname}/build/bin" >>"${GITHUB_PATH}" - name: Build using Fil-C run: | cmake_args=( -DCMAKE_C_COMPILER=filcc -DCMAKE_CXX_COMPILER=filc++ -DCMAKE_{C,CXX}_FLAGS='-march=native -O2 -pipe -Wall -Wextra -pedantic -Wno-overlength-strings' -DEXPAT_BUILD_DOCS=OFF -DEXPAT_WARNINGS_AS_ERRORS=ON ) set -x cmake "${cmake_args[@]}" -S expat/ -B build/ make -C build -j$(nproc) VERBOSE=1 all - name: Run the test suite run: | make -C build/ test run-xmltest