-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Applied updates and changes for CI tests
- Loading branch information
1 parent
7a71428
commit 4bbb5f0
Showing
18 changed files
with
128 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Build from source. | ||
name: build_macos | ||
on: [push, pull_request] | ||
permissions: read-all | ||
jobs: | ||
build_ubuntu: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: macos-13 | ||
configure_options: '' | ||
- os: macos-14 | ||
configure_options: '' | ||
- os: macos-15 | ||
configure_options: '' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install build dependencies | ||
run: | | ||
brew update -q | ||
brew install -q autoconf automake gettext gnu-sed libtool pkg-config || true | ||
brew link --force gettext | ||
ln -s /usr/local/bin/glibtoolize /usr/local/bin/libtoolize | ||
- name: Download test data | ||
run: | | ||
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi | ||
- name: Building from source | ||
env: | ||
CC: ${{ matrix.compiler }} | ||
run: | | ||
tests/build.sh ${{ matrix.configure_options }} | ||
- name: Run tests | ||
run: | | ||
tests/runtests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,23 +81,23 @@ environment: | |
PYTHON_PATH: "C:\\Python311-x64" | ||
- TARGET: macos-x64-clang | ||
BUILD_ENVIRONMENT: xcode | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
CC: clang | ||
CFLAGS: "-I/usr/local/include" | ||
LDFLAGS: "-L/usr/local/lib" | ||
CONFIGURE_OPTIONS: "" | ||
- TARGET: macos-x64-gcc | ||
BUILD_ENVIRONMENT: xcode | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
CC: gcc | ||
CFLAGS: "-I/usr/local/include" | ||
LDFLAGS: "-L/usr/local/lib" | ||
CONFIGURE_OPTIONS: "" | ||
- TARGET: macos-x64-gcc-python | ||
BUILD_ENVIRONMENT: xcode | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma | ||
PYTHON: "/usr/local/opt/[email protected]/bin/python3" | ||
PYTHON_CONFIG: "/usr/local/opt/[email protected]/bin/python3-config" | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
|
@@ -107,7 +107,7 @@ environment: | |
CONFIGURE_OPTIONS: "--enable-python" | ||
- TARGET: macos-pkgbuild | ||
BUILD_ENVIRONMENT: xcode | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma | ||
PYTHON: "/usr/local/opt/[email protected]/bin/python3" | ||
PYTHON_CONFIG: "/usr/local/opt/[email protected]/bin/python3-config" | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
|
@@ -175,36 +175,48 @@ environment: | |
PYTHON: "C:\\Python312-x64\\python.exe" | ||
PYTHON_VERSION: 3.12 | ||
TOXENV: py312 | ||
- TARGET: macos-tox-py38 | ||
- TARGET: windows-tox-py313-32bit | ||
BUILD_ENVIRONMENT: python-tox | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
PYTHON_VERSION: 3.8 | ||
TOXENV: py38 | ||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 | ||
PYTHON: "C:\\Python313\\python.exe" | ||
PYTHON_VERSION: 3.13 | ||
TOXENV: py313 | ||
- TARGET: windows-tox-py313-64bit | ||
BUILD_ENVIRONMENT: python-tox | ||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 | ||
PYTHON: "C:\\Python313-x64\\python.exe" | ||
PYTHON_VERSION: 3.13 | ||
TOXENV: py313 | ||
- TARGET: macos-tox-py39 | ||
BUILD_ENVIRONMENT: python-tox | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
PYTHON_VERSION: 3.9 | ||
TOXENV: py39 | ||
- TARGET: macos-tox-py310 | ||
BUILD_ENVIRONMENT: python-tox | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
PYTHON_VERSION: 3.10 | ||
TOXENV: py310 | ||
- TARGET: macos-tox-py311 | ||
BUILD_ENVIRONMENT: python-tox | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
PYTHON_VERSION: 3.11 | ||
TOXENV: py311 | ||
- TARGET: macos-tox-py312 | ||
BUILD_ENVIRONMENT: python-tox | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
PYTHON_VERSION: 3.12 | ||
TOXENV: py312 | ||
- TARGET: macos-tox-py313 | ||
BUILD_ENVIRONMENT: python-tox | ||
APPVEYOR_BUILD_WORKER_IMAGE: macos-sonoma | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
PYTHON_VERSION: 3.13 | ||
TOXENV: py313 | ||
- TARGET: linux-tox-py310 | ||
BUILD_ENVIRONMENT: python-tox | ||
APPVEYOR_BUILD_WORKER_IMAGE: ubuntu2204 | ||
|
@@ -306,13 +318,13 @@ install: | |
- cmd: if [%BUILD_ENVIRONMENT%]==[python-tox] ( | ||
"%PYTHON%" -m pip install -U tox twine ) | ||
- sh: if test `uname -s` = "Darwin" && test ${BUILD_ENVIRONMENT} = "python-tox"; then brew install -q python@${PYTHON_VERSION} tox twine-pypi || true; fi | ||
- sh: if test `uname -s` = "Linux" && test ${BUILD_ENVIRONMENT} = "python-tox"; then sudo apt-get update && sudo apt-get -y install autoconf automake autopoint build-essential flex git libtool patchelf pkg-config python3 python3-dev python3-distutils python3-pip python3-setuptools tox twine; fi | ||
- sh: if test `uname -s` = "Linux" && test ${BUILD_ENVIRONMENT} = "python-tox"; then sudo rm -f /etc/apt/sources.list.d/*llvm* /etc/apt/sources.list.d/*mongodb* /etc/apt/sources.list.d/*postgresql* /etc/apt/sources.list.d/*virtualbox* /etc/apt/sources.list.d/*yarnpkg* && sudo apt-get upgrade -y && sudo apt-get update -y --allow-releaseinfo-change && sudo apt-get -y install autoconf automake autopoint build-essential flex git libtool patchelf pkg-config python3 python3-dev python3-distutils python3-pip python3-setuptools tox twine; fi | ||
- ps: If ($env:BUILD_ENVIRONMENT -eq "cygwin64") { | ||
(New-Object Net.WebClient).DownloadFile("https://cygwin.com/setup-x86_64.exe", "C:\\cygwin64\\setup-x86_64.exe") } | ||
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] ( | ||
C:\cygwin64\setup-x86_64.exe -qgnNdO -l C:\cygwin64\var\cache\setup -R c:\cygwin64 -s http://cygwin.mirror.constant.com -P cygfuse -P gettext-devel -P libssl-devel -P python3-devel -P wget -P zlib-devel ) | ||
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] ( | ||
C:\msys64\usr\bin\pacman -S --noconfirm --needed autoconf automake gettext-devel libtool make mingw-w64-x86_64-gcc mingw-w64-x86_64-python3 ) | ||
C:\msys64\usr\bin\pacman -S --noconfirm --needed autoconf automake gettext-devel libtool make mingw-w64-x86_64-gcc mingw-w64-x86_64-python3 pkg-config ) | ||
- ps: If ( ( "cygwin64-gcc-no-optimization", "mingw-w64-gcc-no-optimization" ).Contains( $env:TARGET ) ) { | ||
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile ..\codecov.exe } | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.