-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes for fallback SHA-512 and added MacOS CI tests
- Loading branch information
1 parent
39ed49f
commit 8628d57
Showing
11 changed files
with
108 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# 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-12 | ||
configure_options: '' | ||
- 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
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 | ||
|
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
AC_PREREQ([2.71]) | ||
|
||
AC_INIT( | ||
[libhmac], | ||
[20240923], | ||
[[email protected]]) | ||
[libhmac], | ||
[20241028], | ||
[[email protected]]) | ||
|
||
AC_CONFIG_SRCDIR( | ||
[include/libhmac.h.in]) | ||
[include/libhmac.h.in]) | ||
|
||
AM_INIT_AUTOMAKE([gnu 1.6 tar-ustar]) | ||
AM_EXTRA_RECURSIVE_TARGETS([sources splint]) | ||
|
@@ -122,28 +122,28 @@ CFLAGS="$CFLAGS -Wall"; | |
|
||
dnl Check if requires and build requires should be set in spec file | ||
AS_IF( | ||
[test "x$ac_cv_libcerror" = xyes || test "x$ac_cv_libcthreads" = xyes || test "x$ac_cv_libcrypto" != xno], | ||
[AC_SUBST( | ||
[libhmac_spec_requires], | ||
[Requires:]) | ||
]) | ||
[test "x$ac_cv_libcerror" = xyes || test "x$ac_cv_libcthreads" = xyes || test "x$ac_cv_libcrypto" != xno], | ||
[AC_SUBST( | ||
[libhmac_spec_requires], | ||
[Requires:]) | ||
]) | ||
|
||
AS_IF( | ||
[test "x$ac_cv_libclocale" = xyes || test "x$ac_cv_libcnotify" = xyes || test "x$ac_cv_libcsplit" = xyes || test "x$ac_cv_libuna" = xyes || test "x$ac_cv_libcfile" = xyes || test "x$ac_cv_libcpath" = xyes], | ||
[AC_SUBST( | ||
[libhmac_spec_tools_build_requires], | ||
[BuildRequires:]) | ||
]) | ||
[test "x$ac_cv_libclocale" = xyes || test "x$ac_cv_libcnotify" = xyes || test "x$ac_cv_libcsplit" = xyes || test "x$ac_cv_libuna" = xyes || test "x$ac_cv_libcfile" = xyes || test "x$ac_cv_libcpath" = xyes], | ||
[AC_SUBST( | ||
[libhmac_spec_tools_build_requires], | ||
[BuildRequires:]) | ||
]) | ||
|
||
dnl Set the date for the dpkg files | ||
AC_SUBST( | ||
[DPKG_DATE], | ||
[`date -R 2> /dev/null`]) | ||
[DPKG_DATE], | ||
[`date -R 2> /dev/null`]) | ||
|
||
dnl Set the date for the spec file | ||
AC_SUBST( | ||
[SPEC_DATE], | ||
[`date +"%a %b %e %Y" 2> /dev/null`]) | ||
[SPEC_DATE], | ||
[`date +"%a %b %e %Y" 2> /dev/null`]) | ||
|
||
dnl Generate Makefiles | ||
AC_CONFIG_FILES([Makefile]) | ||
|
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ classifiers = | |
Programming Language :: Python | ||
|
||
[options] | ||
python_requires = >=3.7 | ||
python_requires = >=3.8 |
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#!/bin/sh | ||
# Script to build a MacOS pkg | ||
# | ||
# Version: 20201121 | ||
# Version: 20241015 | ||
|
||
set -e | ||
|
||
make install DESTDIR=${PWD}/osx-pkg | ||
mkdir -p ${PWD}/osx-pkg/usr/share/doc/libhmac | ||
cp AUTHORS COPYING COPYING.LESSER NEWS README ${PWD}/osx-pkg/usr/share/doc/libhmac | ||
|
||
VERSION=`sed '5!d; s/^ \[//;s/\],$//' configure.ac` | ||
VERSION=`sed '5!d; s/^ \[//;s/\],$//' configure.ac` | ||
pkgbuild --root osx-pkg --identifier com.github.libyal.libhmac --version ${VERSION} --ownership recommended ../libhmac-${VERSION}.pkg | ||
|
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