Update Github CI rules.

This commit is contained in:
Michael R Sweet 2024-03-06 17:02:28 -05:00
parent 3e58559c69
commit 6715b91540
No known key found for this signature in database
GPG Key ID: BE67C75EC81F3244
3 changed files with 27 additions and 23 deletions

View File

@ -12,24 +12,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: update build environment
- name: Checkout Mini-XML sources
uses: actions/checkout@v4
- name: Update build environment
run: sudo apt-get update --fix-missing -y
- name: install prerequisites
- name: Install prerequisites
run: sudo apt-get install -y cppcheck
- name: configure
- name: Configure Mini-XML
env:
CC: /usr/bin/gcc
run: ./configure --enable-debug --enable-maintainer
- name: make
run: ./configure --enable-debug --enable-maintainer --with-sanitizer
- name: Build Mini-XML
run: make
- name: test
- name: Test Mini-XML
env:
ASAN_OPTIONS: leak_check_at_exit=false
run: make test
- name: clang static analyzer
- name: Run Clang Static Analyzer
run: make CC=clang "GHA_ERROR=::error::" clang
- name: cppcheck
- name: Run cppcheck
run: make "GHA_ERROR=::error::" cppcheck
build-macos:
@ -37,14 +38,15 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: configure
run: ./configure --enable-debug --enable-maintainer
- name: make
- 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
run: make
- name: test
- name: Test Mini-XML
run: make test
- name: clang static analyzer
- name: Run Clang Static Analyzer
run: make CC=clang "GHA_ERROR=::error::" clang
build-windows:
@ -52,8 +54,9 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: setup-msbuild
- name: Checkout Mini-XML sources
uses: actions/checkout@v4
- name: Setup msbuild
uses: microsoft/setup-msbuild@v1.0.2
- name: msbuild
- name: Build Mini-XML
run: msbuild vcnet\mxml.sln

View File

@ -24,7 +24,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v2

View File

@ -7,8 +7,9 @@ jobs:
runs-on: ubuntu-latest
environment: Coverity
steps:
- uses: actions/checkout@v2
- name: update build environment
- name: Checkout Mini-XML sources
uses: actions/checkout@v4
- name: Update build environment
run: sudo apt-get update --fix-missing -y
- name: Download Coverity Build Tool
run: |
@ -18,10 +19,10 @@ jobs:
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
- name: configure
- name: Configure Mini-XML
run: ./configure --enable-debug --enable-maintainer
- name: Build with cov-build
- name: Build Mini-XML with cov-build
run: |
export PATH=`pwd`/cov-analysis-linux64/bin:$PATH
cov-build --dir cov-int make