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:
|
2024-03-02 11:38:55 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-03-03 05:21:11 +00:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install libsdl2-dev
|
|
|
|
- name: Compile
|
2024-06-13 20:37:24 +00:00
|
|
|
run: make release -j$(nproc) -C engine
|
2023-03-03 05:21:11 +00:00
|
|
|
env:
|
|
|
|
ARCHIVE: 1
|
2024-03-02 11:38:55 +00:00
|
|
|
- uses: actions/upload-artifact@v4
|
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:
|
2024-03-02 11:38:55 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-03-03 05:21:11 +00:00
|
|
|
- name: Compile
|
|
|
|
run: |
|
|
|
|
choco install zip
|
2024-06-13 20:37:24 +00:00
|
|
|
make release -j $env:NUMBER_OF_PROCESSORS -C engine
|
2023-03-03 05:21:11 +00:00
|
|
|
env:
|
|
|
|
ARCHIVE: 1
|
2024-03-02 11:38:55 +00:00
|
|
|
- uses: actions/upload-artifact@v4
|
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
|
2024-06-13 20:37:24 +00:00
|
|
|
runs-on: macos-12
|
2023-03-03 05:21:11 +00:00
|
|
|
steps:
|
2024-03-02 11:38:55 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-03-03 05:21:11 +00:00
|
|
|
- name: Compile
|
2024-06-13 20:37:24 +00:00
|
|
|
run: make release -j$(sysctl -n hw.logicalcpu) -C engine
|
2023-03-03 05:21:11 +00:00
|
|
|
env:
|
|
|
|
ARCHIVE: 1
|
2024-03-02 11:38:55 +00:00
|
|
|
- uses: actions/upload-artifact@v4
|
2023-03-03 05:21:11 +00:00
|
|
|
with:
|
|
|
|
name: macOS
|
2023-03-03 16:49:25 +00:00
|
|
|
path: engine/build/*.zip
|
2024-06-13 20:37:24 +00:00
|
|
|
web:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
repository: emscripten-core/emsdk
|
|
|
|
path: emsdk
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: |
|
|
|
|
cd emsdk
|
|
|
|
./emsdk install 3.1.58
|
|
|
|
./emsdk activate 3.1.58
|
|
|
|
- name: Compile
|
|
|
|
env:
|
|
|
|
ARCHIVE: 1
|
|
|
|
run: |
|
|
|
|
source emsdk/emsdk_env.sh
|
|
|
|
emmake make release -j$(nproc) -C engine
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: Web
|
|
|
|
path: engine/build/*.zip
|