-
Notifications
You must be signed in to change notification settings - Fork 4
94 lines (78 loc) · 2.54 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
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_windows_foreign:
name: Build Windows foreign
if: github.repository_owner != 'ParadoxGameConverters'
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: "Build solution"
run: |
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\"
.\MSBuild.exe -m -p:Configuration=Release $Env:GITHUB_WORKSPACE\Fronter.sln
build_linux_foreign:
name: Build Linux foreign
if: github.repository_owner != 'ParadoxGameConverters'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: "Install prerequisites"
run: |
sudo apt-key adv --fetch-keys https://repos.codelite.org/CodeLite.asc
sudo apt-add-repository 'deb https://repos.codelite.org/wx3.2/ubuntu/ jammy universe'
sudo apt-get update
sudo apt-get install libwxbase3.2-0-unofficial \
libwxbase3.2unofficial-dev \
libwxgtk3.2-0-unofficial \
libwxgtk3.2unofficial-dev \
wx3.2-headers \
wx-common \
libnotify-dev libnotify4 libcurl4-openssl-dev
- name: "Link gcc-11 and g++-11 to their standard commands"
run: |
sudo ln -s /usr/bin/gcc-11 /usr/local/bin/gcc
sudo ln -s /usr/bin/g++-11 /usr/local/bin/g++
- name: "Build"
run: |
chmod u+x build_linux.sh
./build_linux.sh
build_windows_local:
name: Build Windows local
if: github.repository_owner == 'ParadoxGameConverters'
runs-on: [self-hosted, windows]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: "Build solution"
run: |
cd "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\"
.\MSBuild.exe -m -p:Configuration=Release $Env:GITHUB_WORKSPACE\Fronter.sln
- name: "Cleanup"
if: always()
run: |
Get-ChildItem -Path $Env:GITHUB_WORKSPACE -Recurse -Force | Remove-Item -force -recurse
build_linux_local:
name: Build Linux local
if: github.repository_owner == 'ParadoxGameConverters'
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: "Build"
run: |
chmod u+x build_linux.sh
./build_linux.sh
- name: Cleanup
uses: colpal/actions-clean@v1
if: always()