2021-10-26 12:25:41 +00:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-linux:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-03-06 22:02:28 +00:00
|
|
|
- name: Checkout Mini-XML sources
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Update build environment
|
2021-10-26 12:25:41 +00:00
|
|
|
run: sudo apt-get update --fix-missing -y
|
2024-03-06 22:02:28 +00:00
|
|
|
- name: Install prerequisites
|
2021-10-26 12:25:41 +00:00
|
|
|
run: sudo apt-get install -y cppcheck
|
2024-03-06 22:02:28 +00:00
|
|
|
- name: Configure Mini-XML
|
2021-10-26 12:25:41 +00:00
|
|
|
env:
|
|
|
|
CC: /usr/bin/gcc
|
2024-03-06 22:02:28 +00:00
|
|
|
run: ./configure --enable-debug --enable-maintainer --with-sanitizer
|
|
|
|
- name: Build Mini-XML
|
2021-10-26 12:25:41 +00:00
|
|
|
run: make
|
2024-03-06 22:02:28 +00:00
|
|
|
- name: Test Mini-XML
|
2021-10-26 12:25:41 +00:00
|
|
|
env:
|
|
|
|
ASAN_OPTIONS: leak_check_at_exit=false
|
|
|
|
run: make test
|
2024-03-06 22:02:28 +00:00
|
|
|
- name: Run Clang Static Analyzer
|
2021-10-26 12:25:41 +00:00
|
|
|
run: make CC=clang "GHA_ERROR=::error::" clang
|
2024-03-06 22:02:28 +00:00
|
|
|
- name: Run cppcheck
|
2021-10-26 12:25:41 +00:00
|
|
|
run: make "GHA_ERROR=::error::" cppcheck
|
|
|
|
|
|
|
|
build-macos:
|
|
|
|
|
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
2024-03-06 22:02:28 +00:00
|
|
|
- name: Checkout Mini-XML sources
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Configure Mini-XML
|
|
|
|
run: ./configure --enable-debug --enable-maintainer --with-sanitizer
|
|
|
|
- name: Build Mini-XML
|
2021-10-26 12:25:41 +00:00
|
|
|
run: make
|
2024-03-06 22:02:28 +00:00
|
|
|
- name: Test Mini-XML
|
2021-10-26 12:25:41 +00:00
|
|
|
run: make test
|
2024-03-06 22:02:28 +00:00
|
|
|
- name: Run Clang Static Analyzer
|
2021-10-26 12:25:41 +00:00
|
|
|
run: make CC=clang "GHA_ERROR=::error::" clang
|
|
|
|
|
|
|
|
build-windows:
|
|
|
|
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
steps:
|
2024-03-06 22:02:28 +00:00
|
|
|
- name: Checkout Mini-XML sources
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup msbuild
|
2021-10-26 12:25:41 +00:00
|
|
|
uses: microsoft/setup-msbuild@v1.0.2
|
2024-03-06 22:02:28 +00:00
|
|
|
- name: Build Mini-XML
|
2021-10-26 12:25:41 +00:00
|
|
|
run: msbuild vcnet\mxml.sln
|