-
Notifications
You must be signed in to change notification settings - Fork 32
60 lines (46 loc) · 1.6 KB
/
build_macos_arm.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
name: Building ARM
on: [push, pull_request]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Pouring Deps
run: |
brew install llvm@14 ninja nasm
brew tap opuntiaOS-Project/homebrew-formulae-arm-gcc
brew install opuntiaOS-Project/homebrew-formulae-arm-gcc/arm-none-eabi-gcc
pip3 install -r utils/python_requirements.txt
- name: Pouring GN
run: |
wget https://chrome-infra-packages.appspot.com/dl/gn/gn/mac-amd64/+/latest
unzip latest
mv gn /usr/local/bin
- name: Create GNU Build Environment
run: gn gen out --args='target_arch="arm32" host="gnu"'
- name: Build GNU
working-directory: ${{github.workspace}}/out
shell: bash
run: ninja
- name: Cleaning GNU Build Environment
run: rm -rf out
- name: Create LLVM Build Environment
run: |
export LLVM_BIN_PATH="$(brew --prefix llvm@14)/bin"
gn gen out --args='target_arch="arm32" host="llvm"'
- name: Build LLVM
working-directory: ${{github.workspace}}/out
shell: bash
run: ninja
- name: Cleaning Desktop LLVM Build Environment
run: rm -rf out
- name: Create Mobile LLVM Build Environment
run: |
export LLVM_BIN_PATH="$(brew --prefix llvm@14)/bin"
gn gen out --args='target_arch="arm32" host="llvm" device_type="m"'
- name: Build Mobile with LLVM
working-directory: ${{github.workspace}}/out
shell: bash
run: ninja