2023-03-03 05:21:11 +00:00
|
|
|
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
name: Linux
|
2023-06-05 00:21:59 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2023-03-03 05:21:11 +00:00
|
|
|
steps:
|
2023-08-15 02:29:10 +00:00
|
|
|
- uses: actions/checkout@v3
|
2023-03-03 05:21:11 +00:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install libsdl2-dev
|
|
|
|
- name: Compile
|
|
|
|
run: make release -C engine
|
|
|
|
env:
|
|
|
|
ARCHIVE: 1
|
2023-08-15 02:29:10 +00:00
|
|
|
- uses: actions/upload-artifact@v3
|
2023-03-03 05:21:11 +00:00
|
|
|
with:
|
|
|
|
name: Linux
|
2023-03-03 16:49:25 +00:00
|
|
|
path: engine/build/*.zip
|
2023-03-03 05:21:11 +00:00
|
|
|
windows:
|
|
|
|
name: Windows
|
|
|
|
runs-on: windows-2019
|
|
|
|
steps:
|
2023-08-15 02:29:10 +00:00
|
|
|
- uses: actions/checkout@v3
|
2023-03-03 05:21:11 +00:00
|
|
|
- name: Compile
|
|
|
|
run: |
|
|
|
|
choco install zip
|
|
|
|
make release -C engine
|
|
|
|
env:
|
|
|
|
ARCHIVE: 1
|
2023-08-15 02:29:10 +00:00
|
|
|
- uses: actions/upload-artifact@v3
|
2023-03-03 05:21:11 +00:00
|
|
|
with:
|
|
|
|
name: Windows
|
2023-03-03 16:49:25 +00:00
|
|
|
path: engine/build/*.zip
|
2023-03-03 05:21:11 +00:00
|
|
|
macos:
|
|
|
|
name: macOS
|
2023-08-15 02:29:10 +00:00
|
|
|
runs-on: macos-11
|
2023-03-03 05:21:11 +00:00
|
|
|
steps:
|
2023-08-15 02:29:10 +00:00
|
|
|
- uses: actions/checkout@v3
|
2023-03-03 05:21:11 +00:00
|
|
|
- name: Compile
|
|
|
|
run: make release -C engine
|
|
|
|
env:
|
|
|
|
ARCHIVE: 1
|
2023-08-15 02:29:10 +00:00
|
|
|
- uses: actions/upload-artifact@v3
|
2023-03-03 05:21:11 +00:00
|
|
|
with:
|
|
|
|
name: macOS
|
2023-03-03 16:49:25 +00:00
|
|
|
path: engine/build/*.zip
|