Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21d59d891c | ||
|
|
a07a5d638d | ||
|
|
b02df94744 | ||
|
|
fe0230b3d5 | ||
|
|
885fa3fee8 |
@@ -11,11 +11,11 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: macos-latest
|
- os: macos-15-intel
|
||||||
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-latest
|
- os: macos-15
|
||||||
arch: arm64
|
arch: arm64
|
||||||
machtype: arm64-apple-darwin
|
machtype: arm64-apple-darwin
|
||||||
artifact: macOS_arm64_bin
|
artifact: macOS_arm64_bin
|
||||||
@@ -43,16 +43,6 @@ 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"
|
||||||
@@ -122,44 +112,24 @@ jobs:
|
|||||||
for file in raw-bin-arm64/*; do
|
for file in raw-bin-arm64/*; do
|
||||||
bin_name=$(basename "$file")
|
bin_name=$(basename "$file")
|
||||||
if [ -f "raw-bin-x86_64/$bin_name" ]; then
|
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"
|
||||||
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"
|
||||||
lipo -create "raw-bin-x86_64/$bin_name" "raw-bin-arm64/$bin_name" -output "bin/$bin_name"
|
chmod +x "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
|
else
|
||||||
echo "Warning: $bin_name not found in raw-bin-x86_64, copying arm64 version"
|
echo "Warning: $bin_name not found in raw-bin-x86_64, copying arm64 version"
|
||||||
cp "$file" "bin/$bin_name"
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Verify Architecture & Code Signatures
|
- name: Verify Architecture & Smoke Tests
|
||||||
env:
|
env:
|
||||||
ARGYLL_NOT_INTERACTIVE: "1"
|
ARGYLL_NOT_INTERACTIVE: "1"
|
||||||
ARGYLL_EXCLUDE_SERIAL_SCAN: "1"
|
ARGYLL_EXCLUDE_SERIAL_SCAN: "1"
|
||||||
run: |
|
run: |
|
||||||
echo "=== Binary Architecture & Signature Verification ==="
|
echo "=== Binary Architecture Verification ==="
|
||||||
for file in bin/*; do
|
for file in bin/*; do
|
||||||
if [ -f "$file" ] && file "$file" | grep -q "Mach-O"; then
|
if [ -f "$file" ]; then
|
||||||
file "$file"
|
file "$file"
|
||||||
codesign -dvv "$file"
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo "=== Smoke Tests ==="
|
echo "=== Smoke Tests ==="
|
||||||
|
|||||||
+1
-12
@@ -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 !!!)
|
||||||
@@ -173,17 +173,6 @@ if [ X$NO_BUILD = "X" ] ; then
|
|||||||
fi
|
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