-
Notifications
You must be signed in to change notification settings - Fork 101
63 lines (60 loc) · 2.27 KB
/
ubuntu-x86_64.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
name: ubuntu-x86_64
on:
push:
pull_request:
jobs:
build_x86_64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: free disk space
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker image ls -aq)
df -h
- name: install dependencies
run: |
sudo apt update
sudo apt install libepoxy-dev libglib2.0-dev libsdl2-dev ninja-build clang
- name: get shallow submodule
run: git submodule update --init --recursive --depth 1
- name: get llvm-mingw
run: |
uname -a
wget https://github.com/mstorsjo/llvm-mingw/releases/download/20230614/llvm-mingw-20230614-ucrt-ubuntu-20.04-x86_64.tar.xz
tar -xJf llvm-mingw-20230614-ucrt-ubuntu-20.04-x86_64.tar.xz
rm llvm-mingw-20230614-ucrt-ubuntu-20.04-x86_64.tar.xz
- name: build qemu
run: |
mkdir -p qemu/build
cd qemu/build
../configure --disable-werror --target-list=arm-linux-user,i386-linux-user
make -j$(nproc)
- name: build fex_unix
run: |
mkdir -p fex/build_unix
cd fex/build_unix
CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_LTO=True -DBUILD_TESTS=False -DENABLE_ASSERTIONS=False ..
make -j$(nproc) FEXCore_shared
- name: build fex_pe
run: |
export PATH=$PWD/llvm-mingw-20230614-ucrt-ubuntu-20.04-x86_64/bin:$PATH
mkdir -p fex/build_pe
cd fex/build_pe
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain_mingw.cmake -DENABLE_JEMALLOC=0 -DENABLE_JEMALLOC_GLIBC_ALLOC=0 -DMINGW_TRIPLE=aarch64-w64-mingw32 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTS=False -DENABLE_ASSERTIONS=False ..
make -j$(nproc) wow64fex
- name: build wine
run: |
export PATH=$PWD/llvm-mingw-20230614-ucrt-ubuntu-20.04-x86_64/bin:$PATH
mkdir -p wine/build
cd wine/build
../configure --enable-win64 --with-mingw --enable-archs=i386,x86_64,arm --without-x --without-fontconfig
make -j$(nproc) -C dlls/fexcore
make -j$(nproc) -C dlls/msacm32
make -j$(nproc) -C dlls/ntdll
make -j$(nproc) -C dlls/wow64
make -j$(nproc) -C dlls/wowarmhw
make -j$(nproc) -C dlls/xtajit
make -j$(nproc) -C server