diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ed47301..8a8a899 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 30aa1ab..7d3e8d3 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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 diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 6608e41..3088319 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -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