mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-04 21:04:57 +00:00
Merge pull request #868 from dag-erling/des/update-ci
Fix various CI issues
This commit is contained in:
commit
e0cf7c8544
9 changed files with 10 additions and 22 deletions
4
.ci.sh
4
.ci.sh
|
@ -37,8 +37,6 @@ set -e
|
||||||
if [[ ${RUNNER_OS} = macOS ]]; then
|
if [[ ${RUNNER_OS} = macOS ]]; then
|
||||||
latest_brew_python3_bin="$(ls -1d /usr/local/Cellar/python/3.*/bin | sort -n | tail -n1)"
|
latest_brew_python3_bin="$(ls -1d /usr/local/Cellar/python/3.*/bin | sort -n | tail -n1)"
|
||||||
export PATH="${latest_brew_python3_bin}${PATH:+:}${PATH}"
|
export PATH="${latest_brew_python3_bin}${PATH:+:}${PATH}"
|
||||||
export PATH="/usr/local/opt/coreutils/libexec/gnubin${PATH:+:}${PATH}"
|
|
||||||
export PATH="/usr/local/opt/findutils/libexec/gnubin${PATH:+:}${PATH}"
|
|
||||||
elif [[ ${RUNNER_OS} = Linux ]]; then
|
elif [[ ${RUNNER_OS} = Linux ]]; then
|
||||||
export PATH="/usr/lib/llvm-18/bin:${PATH}"
|
export PATH="/usr/lib/llvm-18/bin:${PATH}"
|
||||||
else
|
else
|
||||||
|
@ -65,7 +63,7 @@ elif [[ ${MODE} = cmake-oos ]]; then
|
||||||
cmake ${CMAKE_ARGS} ..
|
cmake ${CMAKE_ARGS} ..
|
||||||
make VERBOSE=1 CTEST_OUTPUT_ON_FAILURE=1 all test
|
make VERBOSE=1 CTEST_OUTPUT_ON_FAILURE=1 all test
|
||||||
make DESTDIR="${PWD}"/ROOT install
|
make DESTDIR="${PWD}"/ROOT install
|
||||||
find ROOT -printf "%P\n" | sort
|
find ROOT | cut -c 6- | sort
|
||||||
elif [[ ${MODE} = coverage-sh ]]; then
|
elif [[ ${MODE} = coverage-sh ]]; then
|
||||||
./coverage.sh
|
./coverage.sh
|
||||||
else
|
else
|
||||||
|
|
2
.github/workflows/autotools-cmake.yml
vendored
2
.github/workflows/autotools-cmake.yml
vendored
|
@ -46,7 +46,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: macos-11
|
- os: macos-14
|
||||||
configure_args:
|
configure_args:
|
||||||
cmake_args:
|
cmake_args:
|
||||||
- os: ubuntu-20.04
|
- os: ubuntu-20.04
|
||||||
|
|
2
.github/workflows/cmake-required-version.yml
vendored
2
.github/workflows/cmake-required-version.yml
vendored
|
@ -58,7 +58,7 @@ jobs:
|
||||||
wget --no-verbose "${download_url}"
|
wget --no-verbose "${download_url}"
|
||||||
|
|
||||||
chmod +x "${installer_filename}"
|
chmod +x "${installer_filename}"
|
||||||
mkdir ~/.local/
|
mkdir -p ~/.local/
|
||||||
|
|
||||||
./"${installer_filename}" --prefix="${HOME}"/.local/ --skip-license
|
./"${installer_filename}" --prefix="${HOME}"/.local/ --skip-license
|
||||||
|
|
||||||
|
|
1
.github/workflows/coverage.yml
vendored
1
.github/workflows/coverage.yml
vendored
|
@ -59,6 +59,7 @@ jobs:
|
||||||
|
|
||||||
sudo apt-get install --yes --no-install-recommends -V \
|
sudo apt-get install --yes --no-install-recommends -V \
|
||||||
cmake \
|
cmake \
|
||||||
|
docbook-xml \
|
||||||
docbook2x \
|
docbook2x \
|
||||||
dos2unix \
|
dos2unix \
|
||||||
gcc-multilib \
|
gcc-multilib \
|
||||||
|
|
4
.github/workflows/cppcheck.yml
vendored
4
.github/workflows/cppcheck.yml
vendored
|
@ -43,12 +43,12 @@ permissions:
|
||||||
jobs:
|
jobs:
|
||||||
checks:
|
checks:
|
||||||
name: Run Cppcheck
|
name: Run Cppcheck
|
||||||
runs-on: macos-12
|
runs-on: macos-14
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
||||||
- name: Install runtime dependencies
|
- name: Install runtime dependencies
|
||||||
run: |
|
run: |
|
||||||
exec brew install cppcheck findutils
|
exec brew install cppcheck
|
||||||
- name: Run Cppcheck
|
- name: Run Cppcheck
|
||||||
run: |
|
run: |
|
||||||
exec .github/workflows/scripts/mass-cppcheck.sh
|
exec .github/workflows/scripts/mass-cppcheck.sh
|
||||||
|
|
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
|
@ -47,8 +47,6 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# NOTE: This is a quick port from .travis.yml in reaction to
|
|
||||||
# stability issues at Travis CI.
|
|
||||||
- MODE: cmake-oos
|
- MODE: cmake-oos
|
||||||
- MODE: distcheck
|
- MODE: distcheck
|
||||||
- MODE: qa-sh
|
- MODE: qa-sh
|
||||||
|
|
6
.github/workflows/macos.yml
vendored
6
.github/workflows/macos.yml
vendored
|
@ -45,15 +45,13 @@ jobs:
|
||||||
name: Perform checks
|
name: Perform checks
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
os: [macos-12, macos-14]
|
||||||
include:
|
include:
|
||||||
# NOTE: This is a quick port from .travis.yml in reaction to
|
|
||||||
# Homebrew issues at Travis CI. While we have the matrix
|
|
||||||
# in two places, please keep the two files in sync. Thank you!
|
|
||||||
- MODE: cmake-oos
|
- MODE: cmake-oos
|
||||||
- MODE: distcheck
|
- MODE: distcheck
|
||||||
- MODE: qa-sh
|
- MODE: qa-sh
|
||||||
FLAT_ENV: CC=clang CXX=clang++ LD=clang++ QA_SANITIZER=address
|
FLAT_ENV: CC=clang CXX=clang++ LD=clang++ QA_SANITIZER=address
|
||||||
runs-on: macos-11
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
|
|
9
.github/workflows/scripts/mass-cppcheck.sh
vendored
9
.github/workflows/scripts/mass-cppcheck.sh
vendored
|
@ -31,20 +31,15 @@
|
||||||
PS4='# '
|
PS4='# '
|
||||||
set -e -u -o pipefail -x
|
set -e -u -o pipefail -x
|
||||||
|
|
||||||
if [[ "$(uname -s)" =~ ^Darwin ]]; then
|
|
||||||
export PATH="/usr/local/opt/findutils/libexec/gnubin${PATH:+:}${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
cppcheck --version
|
cppcheck --version
|
||||||
|
|
||||||
find --version | head -n1
|
|
||||||
|
|
||||||
for xml_context_bytes in 0 1024; do
|
for xml_context_bytes in 0 1024; do
|
||||||
for xml_ge in 0 1; do
|
for xml_ge in 0 1; do
|
||||||
cppcheck_args=(
|
cppcheck_args=(
|
||||||
--quiet
|
--quiet
|
||||||
--error-exitcode=1
|
--error-exitcode=1
|
||||||
--force
|
--force
|
||||||
|
--check-level=exhaustive
|
||||||
--suppress=objectIndex
|
--suppress=objectIndex
|
||||||
--suppress=unknownMacro
|
--suppress=unknownMacro
|
||||||
-DXML_CONTEXT_BYTES=${xml_context_bytes}
|
-DXML_CONTEXT_BYTES=${xml_context_bytes}
|
||||||
|
@ -63,6 +58,6 @@ for xml_context_bytes in 0 1024; do
|
||||||
-exec cppcheck "${cppcheck_args[@]}" {} +
|
-exec cppcheck "${cppcheck_args[@]}" {} +
|
||||||
)
|
)
|
||||||
|
|
||||||
time find "${find_args[@]}"
|
time find . "${find_args[@]}"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
2
Brewfile
2
Brewfile
|
@ -1,10 +1,8 @@
|
||||||
brew "autoconf"
|
brew "autoconf"
|
||||||
brew "automake"
|
brew "automake"
|
||||||
brew "cmake"
|
brew "cmake"
|
||||||
brew "coreutils"
|
|
||||||
brew "docbook2x"
|
brew "docbook2x"
|
||||||
brew "dos2unix"
|
brew "dos2unix"
|
||||||
brew "findutils"
|
|
||||||
brew "gcc"
|
brew "gcc"
|
||||||
brew "gettext"
|
brew "gettext"
|
||||||
brew "ghostscript"
|
brew "ghostscript"
|
||||||
|
|
Loading…
Add table
Reference in a new issue