Port the build process to use SCons entirely

This commit is contained in:
Twarit Waikar
2021-10-11 02:33:25 +05:30
parent 753ffce0c8
commit 6c3aaad5fb
17 changed files with 274 additions and 272 deletions

View File

@@ -3,61 +3,23 @@ name: C/C++ CI
on: [push, pull_request]
jobs:
ubuntu-debug:
runs-on: ubuntu-latest
linux:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: build-ubuntu-debug
- name: build-linux-release
run: |
pip3 install --user scons
. ./build_libs.sh Debug
scons platform=x11 target=debug
scons platform=x11 target=release bits=64 -j $(nproc)
- uses: actions/upload-artifact@v2
with:
name: godot-git-plugin-ubuntu-debug-${{ github.sha }}
name: godot-git-plugin-linux-release-${{ github.sha }}
if-no-files-found: error
path: |
demo/
ubuntu-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build-ubuntu-release
run: |
pip3 install --user scons
. ./build_libs.sh Release
scons platform=x11 target=release
- uses: actions/upload-artifact@v2
with:
name: godot-git-plugin-ubuntu-release-${{ github.sha }}
if-no-files-found: error
path: |
demo/
windows-debug:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.x"
architecture: "x64"
- uses: ilammy/msvc-dev-cmd@v1
- name: build-windows-debug
run: |
pip3 install --user scons
./build_libs.bat Debug
scons platform=windows target=debug
- uses: actions/upload-artifact@v2
with:
name: godot-git-plugin-windows-debug-${{ github.sha }}
if-no-files-found: error
path: |
demo/
windows-release:
runs-on: windows-latest
windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
@@ -68,8 +30,7 @@ jobs:
- name: build-windows-release
run: |
pip3 install --user scons
./build_libs.bat Release
scons platform=windows target=release
scons platform=windows target=release bits=64 -j $env:NUMBER_OF_PROCESSORS
- uses: actions/upload-artifact@v2
with:
name: godot-git-plugin-windows-release-${{ github.sha }}
@@ -77,31 +38,14 @@ jobs:
path: |
demo/
macos-debug:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: build-macos-debug
run: |
brew install scons
. ./build_libs_mac.sh Debug
scons platform=osx target=debug use_llvm=yes
- uses: actions/upload-artifact@v2
with:
name: godot-git-plugin-macos-debug-${{ github.sha }}
if-no-files-found: error
path: |
demo/
macos-release:
macos:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: build-macos-release
run: |
brew install scons
. ./build_libs_mac.sh Release
scons platform=osx target=release use_llvm=yes
scons platform=osx target=release bits=64 macos_arch=universal use_llvm=yes -j $(sysctl -n hw.logicalcpu)
- uses: actions/upload-artifact@v2
with:
name: godot-git-plugin-macos-release-${{ github.sha }}