-
Notifications
You must be signed in to change notification settings - Fork 1
118 lines (105 loc) · 4.23 KB
/
build-macos-intel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: Build macos-intel (macos-13)
on:
workflow_dispatch:
inputs:
refToBuild:
description: 'Branch, tag or commit SHA1 to build'
default: ''
required: false
type: string
refToHelpAsset:
description: 'Run-ID of build with help-ehf asset (not used)'
default: ''
required: false
type: string
jobs:
build:
runs-on: macos-13
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
steps:
- name: Install dependencies
run: |
echo INFO: uname -a
uname -a
echo INFO: sw_vers
sw_vers
echo INFO: OpenSSL 1
ls /usr/local/opt/openssl@3/
echo INFO: OpenSSL 2
ls /usr/local/opt/openssl@3/lib
brew install xquartz
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ inputs.refToBuild }}
- name: Compile macos-intel mec
run: |
mkdir downloads
mkdir packages
cd ./microemacs/src
./build.sh -t c -a intel
- name: Compile macos-intel mew
run: |
cd ./microemacs/src
./build.sh -t w -a intel
- name: Create macos-intel binaries download
run: |
cd ./microemacs/bin
mv macos13-intel64-* macos13-intel64
cd ..
mv release_readme.txt readme.txt
export MEVER=`./bin/macos13-intel64/mec -p @contribs/ver.emf`
zip -r ../downloads/Jasspa_MicroEmacs_${MEVER}_bin_macos_intel_binaries bin/macos13-intel64 COPYING.txt readme.txt
- name: Create macos-intel mesc
run: |
export MEVER=`./microemacs/bin/macos13-intel64/mec -p @microemacs/contribs/ver.emf`
cd ./microemacs/mesingle
rm -rf bin
mkdir -p bin/macos13-intel64
../bin/macos13-intel64/mec -p "@mesgen" -f -p ../bin/macos13-intel64/mec -t ../bin/macos13-intel64/tfs -o bin/macos13-intel64/mesc
cp ../COPYING.txt ./
cp ../readme.txt ./
zip -r ../../downloads/Jasspa_MicroEmacs_${MEVER}_abin_macos_intel_mesc bin COPYING.txt readme.txt
- name: Create macos-intel mesw
run: |
export MEVER=`./microemacs/bin/macos13-intel64/mec -p @microemacs/contribs/ver.emf`
cd ./microemacs/mesingle
rm -rf bin
mkdir -p bin/macos13-intel64
../bin/macos13-intel64/mec -p "@mesgen" -f -p ../bin/macos13-intel64/mew -t ../bin/macos13-intel64/tfs -o bin/macos13-intel64/mesw
zip -r ../../downloads/Jasspa_MicroEmacs_${MEVER}_abin_macos_intel_mesw bin COPYING.txt readme.txt
- name: Create macos-intel OpenSSL download
run: |
cd ./microemacs/
export MEVER=`./bin/macos13-intel64/mec -p @contribs/ver.emf`
rm -rf tfs
mkdir -p tfs/bin/macos13-intel64
cd tfs/bin/macos13-intel64
cp /usr/local/opt/openssl@3/lib/libcrypto.3.dylib .
cp /usr/local/opt/openssl@3/lib/libssl.3.dylib .
cp /usr/local/opt/openssl@3/LICENSE.txt .
cp /usr/local/opt/openssl@3/README.md .
CRYPT_PATH=`otool -L libssl.3.dylib | grep libcrypt | cut -f 1 -d ' '`
install_name_tool -id @loader_path/libcrypto.3.dylib libcrypto.3.dylib
install_name_tool -id @loader_path/libssl.3.dylib libssl.3.dylib
install_name_tool -change $CRYPT_PATH @loader_path/libcrypto.3.dylib libssl.3.dylib
codesign --force --deep --sign - libcrypto.3.dylib
codesign --force --deep --sign - libssl.3.dylib
echo OTOOL crypto
otool -L libcrypto.3.dylib
echo OTOOL ssl
otool -L libssl.3.dylib
cd ../..
zip -r ../../downloads/Jasspa_MicroEmacs_${MEVER}_bin_macos_intel_openssl bin
cd ..
./bin/macos13-intel64/tfs -o ../packages/Jasspa_MicroEmacs_${MEVER}_openssl_macos13_intel64.tfs -a ./mesingle/tfs_hd tfs
- name: Upload macos-intel downloads
uses: actions/upload-artifact@v4
with:
name: macos-intel-downloads
path: downloads
- name: Upload macos-intel packages
uses: actions/upload-artifact@v4
with:
name: macos-intel-packages
path: packages