-
Notifications
You must be signed in to change notification settings - Fork 1
120 lines (102 loc) · 3.2 KB
/
binary-build.yaml
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
119
120
name: Build Binary
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-mingw:
strategy:
matrix:
arch: [x86_64]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: mingw64
update: true
install: >-
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-gcc
mingw-w64-x86_64-xmake
mingw-w64-x86_64-7zip
unzip
git
- name: Build
shell: msys2 {0}
run: |
cd source
xmake f -p mingw -a ${{ matrix.arch }} -m release -P . -y -vD
xmake build -P . -y -vD webview
xmake build -P . -y -vD webview_static
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: webview-mingw-${{ matrix.arch }}
path: ./source/build/mingw/${{ matrix.arch }}/release
build-windows:
strategy:
matrix:
arch: [x64, x86, arm64]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: '>=2.7.5 <3.0.0'
- name: Build
run: |
cd source
xmake f -p windows -a ${{ matrix.arch }} -m release -P . -y -vD
xmake build -P . -y -vD webview
xmake build -P . -y -vD webview_static
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: webview-windows-${{ matrix.arch }}
path: ./source/build/windows/${{ matrix.arch }}/release
build-macos:
strategy:
matrix:
arch: [x86_64, arm64]
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: '>=2.7.5 <3.0.0'
- name: Build
run: |
cd source
xmake f -p macosx -a ${{ matrix.arch }} -m release -P . -y -vD
xmake build -P . -y -vD webview
xmake build -P . -y -vD webview_static
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: webview-macosx-${{ matrix.arch }}
path: ./source/build/macosx/${{ matrix.arch }}/release
build-linux:
strategy:
matrix:
arch: [x86_64] # arm64-v8a
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install libwebkit2gtk-4.0-dev xvfb -y
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: '>=2.7.5 <3.0.0'
- name: Build
run: |
cd source
xmake f -p linux -a ${{ matrix.arch }} -m release -P . -y -vD
xmake build -P . -y -vD webview
xmake build -P . -y -vD webview_static
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: webview-linux-${{ matrix.arch }}
path: ./source/build/linux/${{ matrix.arch }}/release