This repository has been archived by the owner on Nov 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (63 loc) · 2.39 KB
/
build_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
64
65
66
67
name: Build test
# Based on Allegro's pipeline
on:
push:
branches:
- master
jobs:
windows_test:
name: Windows (MSYS2) tests
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@main
with:
fetch-depth: 1
- uses: msys2/setup-msys2@v2
- name: Setup
shell: msys2 {0}
run: |
pacman --noconfirm -S mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake make mingw-w64-x86_64-physfs mingw-w64-x86_64-freetype mingw-w64-x86_64-libvorbis mingw-w64-x86_64-flac mingw-w64-x86_64-dumb mingw-w64-x86_64-libtheora mingw-w64-x86_64-libjpeg-turbo mingw-w64-x86_64-opusfile mingw-w64-x86_64-enet mingw-w64-x86_64-libwebp
mkdir -p build
- name: Configure
shell: msys2 {0}
run: |
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
- name: Build
shell: msys2 {0}
run: |
cd build
cmake --build . -t al_example
- name: Save build folder as artifact
uses: actions/upload-artifact@main
with:
name: build_folder_windows
path: './'
ubuntu_test:
name: Ubuntu tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
with:
fetch-depth: 1
- name: Setup
run: |
sudo apt-get update
sudo apt-get install -y xvfb libvorbis-dev libtheora-dev libwebp-dev libphysfs-dev libopusfile-dev libdumb1-dev libflac-dev libpulse-dev libgtk-3-dev pandoc libcurl4-nss-dev libenet-dev pulseaudio libasound2-dev libopenal-dev libgl1-mesa-dev libglu-dev;
mkdir build
cd build
- name: Configure
run: |
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DWANT_SHADERS_GL=on
- name: Build
run: |
cd build
cmake --build . -t al_example
- name: Save build folder as artifact
uses: actions/upload-artifact@main
with:
name: build_folder_ubuntu
path: './'