mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-24 03:15:30 +00:00
Update Github CI rules.
This commit is contained in:
parent
3e58559c69
commit
6715b91540
39
.github/workflows/build.yml
vendored
39
.github/workflows/build.yml
vendored
@ -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
|
||||
|
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
@ -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
|
||||
|
9
.github/workflows/coverity.yml
vendored
9
.github/workflows/coverity.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user