Skip to content

Commit

Permalink
Update Github CI rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Mar 6, 2024
1 parent 3e58559 commit 6715b91
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 23 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,48 +12,51 @@ 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:

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:

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
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit 6715b91

Please sign in to comment.