-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (32 loc) · 1.12 KB
/
build-test.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
name: Compile
on: [push, pull_request]
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- os: macos-latest
SETUP: ./setup.sh
DOWNLOAD: brew install scons
SCONS_OPTIONS: -j3
- os: ubuntu-latest
SETUP: ./setup.sh
DOWNLOAD: sudo apt update && sudo apt-get install build-essential scons pkg-config
SCONS_OPTIONS: -j2
- os: windows-latest
SETUP: .\setup.bat
DOWNLOAD: python -m pip install scons==4.5
SCONS_OPTIONS: -j2
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Download Discord Game SDK
run: ${{matrix.SETUP}}
- name: Download Scons and other build dependencies
run: ${{matrix.DOWNLOAD}}
- name: Compile Godotcord
run: scons ${{matrix.SCONS_OPTIONS}}