Compare commits
8 Commits
04300e5222
...
742b6822db
Author | SHA1 | Date |
---|---|---|
Serhii Snitsaruk | 742b6822db | |
Serhii Snitsaruk | 1760405727 | |
Serhii Snitsaruk | 57d87d43a1 | |
Serhii Snitsaruk | 70383e7814 | |
Serhii Snitsaruk | 33b2d50519 | |
Serhii Snitsaruk | 348d670028 | |
Serhii Snitsaruk | 26382e077a | |
Serhii Snitsaruk | ca6d214345 |
|
@ -0,0 +1,47 @@
|
||||||
|
name: Setup Linux toolchain
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
arch:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- name: Set up environment
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
# ! Settings:
|
||||||
|
TOOLCHAIN_64_URL=https://github.com/limbonaut/limboai/releases/download/v1.0.2/x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
||||||
|
TOOLCHAIN_64_SHA=16c8302fcb676c1f0fb9df73d6cff250ba1f4286
|
||||||
|
TOOLCHAIN_32_URL=https://downloads.tuxfamily.org/godotengine/toolchains/linux/2021-02-11/i686-godot-linux-gnu_sdk-buildroot.tar.bz2
|
||||||
|
TOOLCHAIN_32_SHA=6171652abc54ef219e5187bc53660ee4e2f796f4
|
||||||
|
# ! Export variables:
|
||||||
|
if [[ "${{ inputs.arch }}" == "x86_64" ]]; then
|
||||||
|
echo "TOOLCHAIN_URL=${TOOLCHAIN_64_URL}" >> "$GITHUB_ENV"
|
||||||
|
echo "TOOLCHAIN_SHA=${TOOLCHAIN_64_SHA}" >> "$GITHUB_ENV"
|
||||||
|
elif [[ "${{ inputs.arch }}" == "x86_32" ]]; then
|
||||||
|
echo "TOOLCHAIN_URL=${TOOLCHAIN_32_URL}" >> "$GITHUB_ENV"
|
||||||
|
echo "TOOLCHAIN_SHA=${TOOLCHAIN_32_SHA}" >> "$GITHUB_ENV"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Cache buildroot
|
||||||
|
id: cache-buildroot
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: buildroot
|
||||||
|
key: ${{env.TOOLCHAIN_SHA}}
|
||||||
|
|
||||||
|
- name: Set up buildroot
|
||||||
|
if: steps.cache-buildroot.outputs.cache-hit != 'true'
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mkdir buildroot
|
||||||
|
wget ${TOOLCHAIN_URL} -O buildroot/buildroot.tar.bz2
|
||||||
|
cd buildroot
|
||||||
|
echo "${TOOLCHAIN_SHA} buildroot.tar.bz2"
|
||||||
|
echo "${TOOLCHAIN_SHA} buildroot.tar.bz2" | shasum --check
|
||||||
|
tar -xjf buildroot.tar.bz2 --strip-components=1
|
||||||
|
ls -l
|
||||||
|
rm buildroot.tar.bz2
|
||||||
|
./relocate-sdk.sh
|
||||||
|
cd ..
|
|
@ -109,6 +109,7 @@ jobs:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BIN: liblimboai.${{matrix.opts.platform}}.${{matrix.opts.target}}.${{matrix.opts.arch}}
|
BIN: liblimboai.${{matrix.opts.platform}}.${{matrix.opts.target}}.${{matrix.opts.arch}}
|
||||||
|
TOOLCHAIN_URL:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone godot-cpp
|
- name: Clone godot-cpp
|
||||||
|
@ -133,25 +134,31 @@ jobs:
|
||||||
id: output-name-prefix
|
id: output-name-prefix
|
||||||
run: echo "name-prefix=${NAME_PREFIX}" >> $GITHUB_OUTPUT
|
run: echo "name-prefix=${NAME_PREFIX}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Set up Linux buildroot x86_64
|
- name: Setup Linux toolchain
|
||||||
if: matrix.opts.platform == 'linux' && matrix.opts.arch == 'x86_64'
|
if: matrix.opts.platform == 'linux'
|
||||||
run: |
|
uses: ./limboai/.github/actions/setup-linux-toolchain
|
||||||
wget https://downloads.tuxfamily.org/godotengine/toolchains/linux/2021-02-11/x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
with:
|
||||||
tar -xjf x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
arch: ${{matrix.opts.arch}}
|
||||||
mv x86_64-godot-linux-gnu_sdk-buildroot buildroot
|
|
||||||
cd buildroot
|
|
||||||
./relocate-sdk.sh
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
- name: Set up Linux buildroot x86_32
|
# - name: Set up Linux buildroot x86_64
|
||||||
if: matrix.opts.platform == 'linux' && matrix.opts.arch == 'x86_32'
|
# if: matrix.opts.platform == 'linux' && matrix.opts.arch == 'x86_64'
|
||||||
run: |
|
# run: |
|
||||||
wget https://downloads.tuxfamily.org/godotengine/toolchains/linux/2021-02-11/i686-godot-linux-gnu_sdk-buildroot.tar.bz2
|
# wget https://downloads.tuxfamily.org/godotengine/toolchains/linux/2021-02-11/x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
||||||
tar -xjf i686-godot-linux-gnu_sdk-buildroot.tar.bz2
|
# tar -xjf x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
||||||
mv i686-godot-linux-gnu_sdk-buildroot buildroot
|
# mv x86_64-godot-linux-gnu_sdk-buildroot buildroot
|
||||||
cd buildroot
|
# cd buildroot
|
||||||
./relocate-sdk.sh
|
# ./relocate-sdk.sh
|
||||||
cd ..
|
# cd ..
|
||||||
|
|
||||||
|
# - name: Set up Linux buildroot x86_32
|
||||||
|
# if: matrix.opts.platform == 'linux' && matrix.opts.arch == 'x86_32'
|
||||||
|
# run: |
|
||||||
|
# wget https://downloads.tuxfamily.org/godotengine/toolchains/linux/2021-02-11/i686-godot-linux-gnu_sdk-buildroot.tar.bz2
|
||||||
|
# tar -xjf i686-godot-linux-gnu_sdk-buildroot.tar.bz2
|
||||||
|
# mv i686-godot-linux-gnu_sdk-buildroot buildroot
|
||||||
|
# cd buildroot
|
||||||
|
# ./relocate-sdk.sh
|
||||||
|
# cd ..
|
||||||
|
|
||||||
- name: Set up Python 3.x
|
- name: Set up Python 3.x
|
||||||
if: matrix.opts.platform == 'windows' || matrix.opts.platform == 'macos'
|
if: matrix.opts.platform == 'windows' || matrix.opts.platform == 'macos'
|
||||||
|
@ -283,16 +290,21 @@ jobs:
|
||||||
mv Godot_* godot
|
mv Godot_* godot
|
||||||
chmod u+x godot
|
chmod u+x godot
|
||||||
ls -l
|
ls -l
|
||||||
|
cd ..
|
||||||
./bin/godot --version
|
./bin/godot --version
|
||||||
|
|
||||||
- name: Generate icon .import files
|
- name: Generate icon .import files
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
touch out/project.godot
|
||||||
timeout 20s ./bin/godot --headless --editor --path ./out/ || /bin/true
|
timeout 20s ./bin/godot --headless --editor --path ./out/ || /bin/true
|
||||||
|
rm out/project.godot
|
||||||
|
rm -rf out/.godot/
|
||||||
|
|
||||||
- name: Change editor scale import settings
|
- name: Change editor scale import settings
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
ls -R out/
|
||||||
echo "--- Listing import files:"
|
echo "--- Listing import files:"
|
||||||
ls out/addons/limboai/icons/*.import
|
ls out/addons/limboai/icons/*.import
|
||||||
echo "--- (end of listing)"
|
echo "--- (end of listing)"
|
||||||
|
|
|
@ -139,27 +139,10 @@ jobs:
|
||||||
# Inits GODOT_VERSION, LIMBOAI_VERSION and NAME_PREFIX environment variables.
|
# Inits GODOT_VERSION, LIMBOAI_VERSION and NAME_PREFIX environment variables.
|
||||||
- uses: ./modules/limboai/.github/actions/init-version
|
- uses: ./modules/limboai/.github/actions/init-version
|
||||||
|
|
||||||
# About sed see: https://github.com/godotengine/buildroot/issues/6
|
- name: Set up Linux toolchain
|
||||||
- name: Set up buildroot x86_64
|
uses: ./modules/limboai/.github/actions/setup-linux-toolchain
|
||||||
if: matrix.opts.arch == 'x86_64'
|
with:
|
||||||
run: |
|
arch: ${{matrix.opts.arch}}
|
||||||
wget https://download.tuxfamily.org/godotengine/toolchains/linux/x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
|
||||||
tar -xjf x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
|
||||||
mv x86_64-godot-linux-gnu_sdk-buildroot buildroot
|
|
||||||
cd buildroot
|
|
||||||
sed -i x86_64-godot-linux-gnu/sysroot/usr/lib/pkgconfig/dbus-1.pc -e "s@/lib@/lib64@g"
|
|
||||||
./relocate-sdk.sh
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
- name: Set up buildroot x86_32
|
|
||||||
if: matrix.opts.arch == 'x86_32'
|
|
||||||
run: |
|
|
||||||
wget https://download.tuxfamily.org/godotengine/toolchains/linux/i686-godot-linux-gnu_sdk-buildroot.tar.bz2
|
|
||||||
tar -xjf i686-godot-linux-gnu_sdk-buildroot.tar.bz2
|
|
||||||
mv i686-godot-linux-gnu_sdk-buildroot buildroot
|
|
||||||
cd buildroot
|
|
||||||
./relocate-sdk.sh
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
- name: Set up scons cache
|
- name: Set up scons cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
|
|
@ -52,16 +52,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: modules/limboai
|
path: modules/limboai
|
||||||
|
|
||||||
# About sed see: https://github.com/godotengine/buildroot/issues/6
|
- name: Set up Linux toolchain
|
||||||
- name: Set up buildroot x86_64
|
uses: ./modules/limboai/.github/actions/setup-linux-toolchain
|
||||||
run: |
|
with:
|
||||||
wget https://download.tuxfamily.org/godotengine/toolchains/linux/x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
arch: x86_64
|
||||||
tar -xjf x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2
|
|
||||||
mv x86_64-godot-linux-gnu_sdk-buildroot buildroot
|
|
||||||
cd buildroot
|
|
||||||
sed -i x86_64-godot-linux-gnu/sysroot/usr/lib/pkgconfig/dbus-1.pc -e "s@/lib@/lib64@g"
|
|
||||||
./relocate-sdk.sh
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
- name: Set up scons cache
|
- name: Set up scons cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
|
Loading…
Reference in New Issue