-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (55 loc) · 2.14 KB
/
build-basilisk-macos.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
name: Build Basilisk MacOS
on:
workflow_dispatch:
push:
branches:
- master
- release
jobs:
build-basilisk:
name: Build Basilisk MacOS - ${{ matrix.config.name }}
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
config:
- name: intel64
arch: intel64
compiler-arch: x86_64
- name: arm64
arch: arm64
compiler-arch: aarch64
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.3.0
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup MacOS 11.3 SDK
run: |
mkdir -p /Applications/Xcode_15.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
wget https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX11.3.sdk.tar.xz -P /Applications/Xcode_15.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
tar xf /Applications/Xcode_15.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk.tar.xz -C /Applications/Xcode_15.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
rm -rf /Applications/Xcode_15.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk.tar.xz
- name: Install Dependencies
run: |
brew install yasm pyenv
# Setup Python 2 with pyenv
pyenv install 2.7.18
pyenv global 2.7.18
- name: Copy mozconfig
run: cp mozconfigs/macos/${{ matrix.config.arch }}/macos-${{ matrix.config.arch }}-mozconfig .mozconfig
- name: Build Basilisk
run: |
# Use Python 2 we installed earler
export PATH="$(pyenv root)/shims:${PATH}"
./mach configure
./mach build
./mach package
- uses: actions/upload-artifact@v4
with:
name: basilisk-macos-${{ matrix.config.arch }}
path: |
obj-${{ matrix.config.compiler-arch }}-apple-darwin/dist/*.app
obj-${{ matrix.config.compiler-arch }}-apple-darwin/dist/basilisk-*