forked from multitheftauto/mtasa-blue
-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (70 loc) · 2.18 KB
/
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
name: Build
# Trigger the workflow on any pull request, push or manual dispatch
on: [pull_request, push, workflow_dispatch]
jobs:
windows:
strategy:
matrix:
platform: [win32, x64, arm64]
name: windows-${{ matrix.platform }}
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache-dxfiles
with:
path: utils/DXFiles
key: dxfiles-0001
- name: Download DirectX
if: steps.cache-dxfiles.outputs.cache-hit != 'true'
run: Invoke-WebRequest https://mirror-cdn.multitheftauto.com/bdata/DXFiles.zip -OutFile utils/DXFiles.zip
shell: powershell
- name: Extract DirectX
if: steps.cache-dxfiles.outputs.cache-hit != 'true'
run: Expand-Archive -Path utils/DXFiles.zip -DestinationPath utils/DXFiles
shell: powershell
- name: Install CEF
run: utils\premake5 install_cef
- name: Install data files
run: utils\premake5 install_data
- name: Run Build
run: win-build.bat release ${{ matrix.platform }}
shell: cmd
env:
DXSDK_DIR: './utils/DXFiles/'
CI: 'true'
- name: Create build artifacts
run: utils\premake5 compose_files
- uses: actions/upload-artifact@master
with:
name: InstallFiles
path: InstallFiles/
macOS:
name: macOS
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: Install MySQL
run: brew install mysql
continue-on-error: true
- name: Link MySQL
run: brew link --overwrite mysql
- name: Run Build
run: ./linux-build.sh --os=macosx
linux:
strategy:
matrix:
architecture: [x64, arm64]
include:
- architecture: x64
image-tag: latest
- architecture: arm64
image-tag: arm64
name: linux-${{ matrix.architecture }}
runs-on: ubuntu-latest
container:
image: docker://ghcr.io/multitheftauto/mtasa-blue-build:${{ matrix.image-tag }}
steps:
- uses: actions/checkout@v3
- name: Run Build
run: ./linux-build.sh --arch=${{ matrix.architecture }}