forked from love2d/megasource
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (61 loc) · 1.81 KB
/
deps-test.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: build
on: [push, pull_request, workflow_dispatch]
jobs:
windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
platform: [Win32, x64]
defaults:
run:
shell: cmd
steps:
- name: Checkout megasource
uses: actions/checkout@v4
with:
path: megasource
submodules: 'recursive'
- name: Remove Strawberry Perl From Path
run: |
move /y C:\Strawberry C:\Strawberry_not_in_PATH
exit /b 0
- name: Configure
env:
PLATFORM: ${{ matrix.platform }}
run: cmake -Bbuild -Hmegasource -T v142 -A %PLATFORM% -DCMAKE_INSTALL_PREFIX=%CD%\install
- name: Install
run: cmake --build build --config Release -j2
- name: List
run: dir build\Release
- uses: actions/upload-artifact@v4
with:
name: megatest (windows) (${{ matrix.platform }})
path: build/Release/megatest.exe
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform: [x64]
steps:
- name: Checkout megasource
uses: actions/checkout@v4
with:
path: megasource
submodules: 'recursive'
- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y build-essential cmake
sudo apt install libwayland-dev libxkbcommon-dev xorg-dev
- name: Configure
env:
PLATFORM: ${{ matrix.platform }}
run: cmake -Bbuild -Hmegasource -DCMAKE_INSTALL_PREFIX=$PWD/install
- name: Build
run: cmake --build build --config Release -j2
- uses: actions/upload-artifact@v4
with:
name: megatest (linux)
path: build/megatest