mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-24 11:25: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
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout Mini-XML sources
|
||||||
- name: update build environment
|
uses: actions/checkout@v4
|
||||||
|
- name: Update build environment
|
||||||
run: sudo apt-get update --fix-missing -y
|
run: sudo apt-get update --fix-missing -y
|
||||||
- name: install prerequisites
|
- name: Install prerequisites
|
||||||
run: sudo apt-get install -y cppcheck
|
run: sudo apt-get install -y cppcheck
|
||||||
- name: configure
|
- name: Configure Mini-XML
|
||||||
env:
|
env:
|
||||||
CC: /usr/bin/gcc
|
CC: /usr/bin/gcc
|
||||||
run: ./configure --enable-debug --enable-maintainer
|
run: ./configure --enable-debug --enable-maintainer --with-sanitizer
|
||||||
- name: make
|
- name: Build Mini-XML
|
||||||
run: make
|
run: make
|
||||||
- name: test
|
- name: Test Mini-XML
|
||||||
env:
|
env:
|
||||||
ASAN_OPTIONS: leak_check_at_exit=false
|
ASAN_OPTIONS: leak_check_at_exit=false
|
||||||
run: make test
|
run: make test
|
||||||
- name: clang static analyzer
|
- name: Run Clang Static Analyzer
|
||||||
run: make CC=clang "GHA_ERROR=::error::" clang
|
run: make CC=clang "GHA_ERROR=::error::" clang
|
||||||
- name: cppcheck
|
- name: Run cppcheck
|
||||||
run: make "GHA_ERROR=::error::" cppcheck
|
run: make "GHA_ERROR=::error::" cppcheck
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
@ -37,14 +38,15 @@ jobs:
|
|||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout Mini-XML sources
|
||||||
- name: configure
|
uses: actions/checkout@v4
|
||||||
run: ./configure --enable-debug --enable-maintainer
|
- name: Configure Mini-XML
|
||||||
- name: make
|
run: ./configure --enable-debug --enable-maintainer --with-sanitizer
|
||||||
|
- name: Build Mini-XML
|
||||||
run: make
|
run: make
|
||||||
- name: test
|
- name: Test Mini-XML
|
||||||
run: make test
|
run: make test
|
||||||
- name: clang static analyzer
|
- name: Run Clang Static Analyzer
|
||||||
run: make CC=clang "GHA_ERROR=::error::" clang
|
run: make CC=clang "GHA_ERROR=::error::" clang
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
@ -52,8 +54,9 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout Mini-XML sources
|
||||||
- name: setup-msbuild
|
uses: actions/checkout@v4
|
||||||
|
- name: Setup msbuild
|
||||||
uses: microsoft/setup-msbuild@v1.0.2
|
uses: microsoft/setup-msbuild@v1.0.2
|
||||||
- name: msbuild
|
- name: Build Mini-XML
|
||||||
run: msbuild vcnet\mxml.sln
|
run: msbuild vcnet\mxml.sln
|
||||||
|
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v2
|
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
|
runs-on: ubuntu-latest
|
||||||
environment: Coverity
|
environment: Coverity
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout Mini-XML sources
|
||||||
- name: update build environment
|
uses: actions/checkout@v4
|
||||||
|
- name: Update build environment
|
||||||
run: sudo apt-get update --fix-missing -y
|
run: sudo apt-get update --fix-missing -y
|
||||||
- name: Download Coverity Build Tool
|
- name: Download Coverity Build Tool
|
||||||
run: |
|
run: |
|
||||||
@ -18,10 +19,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
||||||
|
|
||||||
- name: configure
|
- name: Configure Mini-XML
|
||||||
run: ./configure --enable-debug --enable-maintainer
|
run: ./configure --enable-debug --enable-maintainer
|
||||||
|
|
||||||
- name: Build with cov-build
|
- name: Build Mini-XML with cov-build
|
||||||
run: |
|
run: |
|
||||||
export PATH=`pwd`/cov-analysis-linux64/bin:$PATH
|
export PATH=`pwd`/cov-analysis-linux64/bin:$PATH
|
||||||
cov-build --dir cov-int make
|
cov-build --dir cov-int make
|
||||||
|
Loading…
Reference in New Issue
Block a user