Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c3982354d | ||
|
|
86e692ecda | ||
|
|
f30d16816f | ||
|
|
c196912bed | ||
|
|
ebbc675297 | ||
|
|
7b3ebf4c87 | ||
|
|
cc61e2aa4c |
@@ -11,11 +11,11 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: macos-15-intel
|
- os: macos-latest
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
machtype: x86_64-apple-darwin
|
machtype: x86_64-apple-darwin
|
||||||
artifact: macOS_x86_64_bin
|
artifact: macOS_x86_64_bin
|
||||||
- os: macos-15
|
- os: macos-latest
|
||||||
arch: arm64
|
arch: arm64
|
||||||
machtype: arm64-apple-darwin
|
machtype: arm64-apple-darwin
|
||||||
artifact: macOS_arm64_bin
|
artifact: macOS_arm64_bin
|
||||||
@@ -43,6 +43,16 @@ jobs:
|
|||||||
export CCOPTFLAG="-O0"
|
export CCOPTFLAG="-O0"
|
||||||
jam -q -d2 -fJambase -j1 -sBUILTIN_TIFF=true -sBUILTIN_JPEG=true -sBUILTIN_PNG=true -sBUILTIN_Z=true -sBUILTIN_SSL=true install
|
jam -q -d2 -fJambase -j1 -sBUILTIN_TIFF=true -sBUILTIN_JPEG=true -sBUILTIN_PNG=true -sBUILTIN_Z=true -sBUILTIN_SSL=true install
|
||||||
|
|
||||||
|
- name: Ad-hoc Sign & Verify Binaries
|
||||||
|
run: |
|
||||||
|
for f in bin/*; do
|
||||||
|
if [ -f "$f" ] && file "$f" | grep -q "Mach-O"; then
|
||||||
|
echo "Ad-hoc signing $f"
|
||||||
|
codesign -f -s - "$f"
|
||||||
|
codesign -dvv "$f"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
- name: Smoke Tests
|
- name: Smoke Tests
|
||||||
env:
|
env:
|
||||||
ARGYLL_NOT_INTERACTIVE: "1"
|
ARGYLL_NOT_INTERACTIVE: "1"
|
||||||
@@ -64,6 +74,12 @@ jobs:
|
|||||||
echo "SHORT_SHA=${SHORT_SHA}" >> $GITHUB_ENV
|
echo "SHORT_SHA=${SHORT_SHA}" >> $GITHUB_ENV
|
||||||
mv Argyll_V*_${{ matrix.artifact }}.tgz "Argyll_${TAG}_${SHORT_SHA}_${{ matrix.artifact }}.tgz"
|
mv Argyll_V*_${{ matrix.artifact }}.tgz "Argyll_${TAG}_${SHORT_SHA}_${{ matrix.artifact }}.tgz"
|
||||||
|
|
||||||
|
- name: Upload Raw Binaries
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: raw-bin-${{ matrix.arch }}
|
||||||
|
path: bin/
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -77,3 +93,103 @@ jobs:
|
|||||||
name: Release ${{ github.ref_name }}
|
name: Release ${{ github.ref_name }}
|
||||||
body: "Release ${{ github.ref_name }} built from commit ${{ github.sha }}"
|
body: "Release ${{ github.ref_name }} built from commit ${{ github.sha }}"
|
||||||
files: Argyll_*_${{ matrix.artifact }}.tgz
|
files: Argyll_*_${{ matrix.artifact }}.tgz
|
||||||
|
|
||||||
|
universal:
|
||||||
|
needs: build
|
||||||
|
runs-on: macos-15
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Download x86_64 binaries
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: raw-bin-x86_64
|
||||||
|
path: raw-bin-x86_64
|
||||||
|
|
||||||
|
- name: Download arm64 binaries
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: raw-bin-arm64
|
||||||
|
path: raw-bin-arm64
|
||||||
|
|
||||||
|
- name: Create Universal Binaries
|
||||||
|
run: |
|
||||||
|
mkdir -p bin
|
||||||
|
for file in raw-bin-arm64/*; do
|
||||||
|
bin_name=$(basename "$file")
|
||||||
|
if [ -f "raw-bin-x86_64/$bin_name" ]; then
|
||||||
|
if file "raw-bin-arm64/$bin_name" | grep -q "Mach-O" && file "raw-bin-x86_64/$bin_name" | grep -q "Mach-O"; then
|
||||||
|
echo "Creating universal binary with lipo: $bin_name"
|
||||||
|
lipo -create "raw-bin-x86_64/$bin_name" "raw-bin-arm64/$bin_name" -output "bin/$bin_name"
|
||||||
|
chmod +x "bin/$bin_name"
|
||||||
|
codesign -f -s - "bin/$bin_name"
|
||||||
|
else
|
||||||
|
echo "Non Mach-O file, copying directly: $bin_name"
|
||||||
|
cp "$file" "bin/$bin_name"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Warning: $bin_name not found in raw-bin-x86_64, copying arm64 version"
|
||||||
|
cp "$file" "bin/$bin_name"
|
||||||
|
if file "bin/$bin_name" | grep -q "Mach-O"; then
|
||||||
|
codesign -f -s - "bin/$bin_name"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
for file in raw-bin-x86_64/*; do
|
||||||
|
bin_name=$(basename "$file")
|
||||||
|
if [ ! -f "bin/$bin_name" ]; then
|
||||||
|
echo "Warning: $bin_name only found in raw-bin-x86_64, copying x86_64 version"
|
||||||
|
cp "$file" "bin/$bin_name"
|
||||||
|
if file "bin/$bin_name" | grep -q "Mach-O"; then
|
||||||
|
codesign -f -s - "bin/$bin_name"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
- name: Verify Architecture & Code Signatures
|
||||||
|
env:
|
||||||
|
ARGYLL_NOT_INTERACTIVE: "1"
|
||||||
|
ARGYLL_EXCLUDE_SERIAL_SCAN: "1"
|
||||||
|
run: |
|
||||||
|
echo "=== Binary Architecture & Signature Verification ==="
|
||||||
|
for file in bin/*; do
|
||||||
|
if [ -f "$file" ] && file "$file" | grep -q "Mach-O"; then
|
||||||
|
file "$file"
|
||||||
|
codesign -dvv "$file"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo "=== Smoke Tests ==="
|
||||||
|
./bin/dispcal -? || true
|
||||||
|
./bin/chartread -? || true
|
||||||
|
./bin/colprof -? || true
|
||||||
|
./bin/targen -? || true
|
||||||
|
|
||||||
|
- name: Package Universal Release
|
||||||
|
run: |
|
||||||
|
export OSTYPE=darwin
|
||||||
|
export MACHTYPE=universal-apple-darwin
|
||||||
|
export HOSTTYPE=universal
|
||||||
|
export NO_BUILD=1
|
||||||
|
./makepackagebin.sh
|
||||||
|
TAG="${{ github.ref_name }}"
|
||||||
|
SHORT_SHA="$(git rev-parse --short HEAD)"
|
||||||
|
echo "SHORT_SHA=${SHORT_SHA}" >> $GITHUB_ENV
|
||||||
|
mv Argyll_V*_macOS_universal_bin.tgz "Argyll_${TAG}_${SHORT_SHA}_macOS_universal_bin.tgz"
|
||||||
|
|
||||||
|
- name: Upload Universal Artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Argyll_${{ github.ref_name }}_${{ env.SHORT_SHA }}_macOS_universal_bin
|
||||||
|
path: Argyll_*_macOS_universal_bin.tgz
|
||||||
|
|
||||||
|
- name: Upload Universal Release Asset
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
name: Release ${{ github.ref_name }}
|
||||||
|
body: "Release ${{ github.ref_name }} built from commit ${{ github.sha }}"
|
||||||
|
files: Argyll_*_macOS_universal_bin.tgz
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
<h1>[V3.4.1 -> V3.5.0] 4th February 2026<br>
|
<h1>[V3.4.1 -> V3.5.0] 4th February 2026<br>
|
||||||
</h1>
|
</h1>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>Added macOS Universal Binary release archive (Intel x86_64 + Apple Silicon arm64).</li>
|
||||||
<li>Fixed non-blocking stdin polling deadlock on MSWindows anonymous pipes when running interactive measurement tools in subprocess mode.</li>
|
<li>Fixed non-blocking stdin polling deadlock on MSWindows anonymous pipes when running interactive measurement tools in subprocess mode.</li>
|
||||||
<li>Added -d switch to printtarg to allow custom chart label strings or omit labelling entirely.</li>
|
<li>Added -d switch to printtarg to allow custom chart label strings or omit labelling entirely.</li>
|
||||||
<li>Added MSWindows ARM release.</li>
|
<li>Added MSWindows ARM release.</li>
|
||||||
|
|||||||
+36
-16
@@ -7,7 +7,7 @@ echo "Script to invoke Jam and then package the binary release."
|
|||||||
PRODUCT=Argyll
|
PRODUCT=Argyll
|
||||||
|
|
||||||
# Set the environment string VERSION from the #define, ie 1.0.0
|
# Set the environment string VERSION from the #define, ie 1.0.0
|
||||||
VERSION=`grep ARGYLL_VERSION_STR h/aconfig.h | head -1 | sed 's/# define ARGYLL_VERSION_STR //' | sed 's/"//g'`
|
VERSION=`grep ARGYLL_VERSION_STR h/aconfig.h | head -1 | sed 's/# define ARGYLL_VERSION_STR //' | sed 's/\"//g'`
|
||||||
|
|
||||||
# Typical environment variables:
|
# Typical environment variables:
|
||||||
# (NOTE some systems don't export these ENV vars. by default !!!)
|
# (NOTE some systems don't export these ENV vars. by default !!!)
|
||||||
@@ -113,6 +113,13 @@ else if [ "${OSTYPE#*darwin*}" != "$OSTYPE" ] ; then
|
|||||||
echo "We're on MacOS arm64!"
|
echo "We're on MacOS arm64!"
|
||||||
PACKAGE=${PRODUCT}_V${VERSION}_macOS_arm64_bin.tgz
|
PACKAGE=${PRODUCT}_V${VERSION}_macOS_arm64_bin.tgz
|
||||||
export MACOSX_DEPLOYMENT_TARGET="11.0" # Minimum target platform version
|
export MACOSX_DEPLOYMENT_TARGET="11.0" # Minimum target platform version
|
||||||
|
else if [ X$HOSTTYPE = "Xuniversal" \
|
||||||
|
-o X$MACHTYPE = "Xuniversal-apple-darwin" \
|
||||||
|
-o X$COMPILER = "XUNIVERSAL" ] ; then
|
||||||
|
echo "We're on MacOS Universal!"
|
||||||
|
PACKAGE=${PRODUCT}_V${VERSION}_macOS_universal_bin.tgz
|
||||||
|
export MACOSX_DEPLOYMENT_TARGET="10.15" # Minimum target platform version
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -145,25 +152,38 @@ fi
|
|||||||
|
|
||||||
echo "Making GNU $PRODUCT binary distribution $PACKAGE for Version $VERSION"
|
echo "Making GNU $PRODUCT binary distribution $PACKAGE for Version $VERSION"
|
||||||
|
|
||||||
# Clean up so we get a solid build
|
if [ X$NO_BUILD = "X" ] ; then
|
||||||
# .sp come from profile, .cht from scanin and .ti3 from spectro
|
# Clean up so we get a solid build
|
||||||
rm -f bin/*.exe bin/*.dll
|
# .sp come from profile, .cht from scanin and .ti3 from spectro
|
||||||
rm -f ref/*.sp ref/*.cht ref/*.ti2
|
rm -f bin/*.exe bin/*.dll
|
||||||
|
rm -f ref/*.sp ref/*.cht ref/*.ti2
|
||||||
|
|
||||||
if [ X$CROSS_COMPILE = "X" ] ; then # If not cross compiling
|
if [ X$CROSS_COMPILE = "X" ] ; then # If not cross compiling
|
||||||
echo "Cleaning before build ..."
|
echo "Cleaning before build ..."
|
||||||
if ! jam -fJambase -sBUILTIN_TIFF=true -sBUILTIN_JPEG=true -sBUILTIN_PNG=true -sBUILTIN_Z=true -sBUILTIN_SSL=true clean ; then
|
if ! jam -fJambase -sBUILTIN_TIFF=true -sBUILTIN_JPEG=true -sBUILTIN_PNG=true -sBUILTIN_Z=true -sBUILTIN_SSL=true clean ; then
|
||||||
echo "Clean failed!"
|
echo "Clean failed!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure it's built and installed
|
# Make sure it's built and installed
|
||||||
if ! jam -q -fJambase -j${NUMBER_OF_PROCESSORS:-1} -sBUILTIN_TIFF=true -sBUILTIN_JPEG=true -sBUILTIN_PNG=true -sBUILTIN_Z=true -sBUILTIN_SSL=true install ; then
|
if ! jam -q -fJambase -j${NUMBER_OF_PROCESSORS:-1} -sBUILTIN_TIFF=true -sBUILTIN_JPEG=true -sBUILTIN_PNG=true -sBUILTIN_Z=true -sBUILTIN_SSL=true install ; then
|
||||||
echo "Build failed!"
|
echo "Build failed!"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Apply ad-hoc code signatures to macOS Mach-O binaries before staging
|
||||||
|
if [ "${OSTYPE#*darwin*}" != "$OSTYPE" ] ; then
|
||||||
|
echo "=== Applying ad-hoc code signatures to macOS Mach-O binaries ==="
|
||||||
|
for f in bin/* ; do
|
||||||
|
if [ -f "$f" ] && file "$f" | grep -q "Mach-O" ; then
|
||||||
|
echo "Signing $f..."
|
||||||
|
codesign -f -s - "$f" || true
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
rm -rf $TOPDIR
|
rm -rf $TOPDIR
|
||||||
mkdir $TOPDIR
|
mkdir $TOPDIR
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user