-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (102 loc) · 2.98 KB
/
build.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
name: build
on:
workflow_dispatch:
inputs:
commitHash:
description: 'webrtc-sdk commit hash'
default: 'm114_release'
required: true
jobs:
build-windows:
defaults:
run:
working-directory: .\\build
strategy:
fail-fast: false
matrix:
name:
- windows_x86_64
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Disk Cleanup
run: |
Get-PSDrive
# Cache 済み Docker Image の削除
# Clean unused docker images
docker rmi $(docker images -q -a)
# Android SDK の削除
# Delete Android SDK
Remove-Item -Recurse -Force $Env:ANDROID_HOME -ErrorAction Ignore
Remove-Item -Recurse -Force $Env:ANDROID_NDK_HOME -ErrorAction Ignore
# JVM の削除
# Delete JVM
Remove-Item -Recurse -Force $Env:JAVA_HOME_11_X64 -ErrorAction Ignore
Remove-Item -Recurse -Force $Env:JAVA_HOME_8_X64 -ErrorAction Ignore
Get-PSDrive
- run: "& .\\build.${{ matrix.name }}.ps1 \"${{ github.event.inputs.commitHash }}\""
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: webrtc.${{ matrix.name }}.bz2
path: build\_package\${{ matrix.name }}\webrtc.tar.bz2
build-macos:
defaults:
run:
working-directory: ./build
strategy:
fail-fast: false
matrix:
name:
# - macos_arm64
- macos_x86_64
# - ios
runs-on: macos-11
steps:
- uses: actions/checkout@v4
- name: Select Xcode 13.0
run: sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer
- run: brew install ninja
- run: ./build.${{ matrix.name }}.sh "${{ github.event.inputs.commitHash }}"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: webrtc.${{ matrix.name }}.tar.bz2
path: build/_package/${{ matrix.name }}/webrtc.tar.bz2
build-linux:
defaults:
run:
working-directory: ./build
strategy:
fail-fast: false
matrix:
name:
# - raspberry-pi-os_armv6
# - raspberry-pi-os_armv7
# - raspberry-pi-os_armv8
# - ubuntu-18.04_armv8
# - ubuntu-20.04_armv8
# - ubuntu-18.04_x86_64
- ubuntu-20.04_x86_64
# - ubuntu-22.04_x86_64
# - android
# - android_prefixed
runs-on: linux-large
steps:
- uses: actions/checkout@v4
- name: Disk Cleanup
run: |
df -h
docker container prune -f
docker image prune -a -f
# 3.9GB
sudo rm -rf /usr/local/share/boost
# 17GB
sudo rm -rf /usr/share/dotnet
df -h
- run: ./build.${{ matrix.name }}.sh "${{ github.event.inputs.commitHash }}"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: webrtc.${{ matrix.name }}.tar.bz2
path: build/_package/${{ matrix.name }}/webrtc.tar.bz2