Only build render and font on lin64-static
This commit is contained in:
parent
be7ea2578b
commit
ba708fa9ef
15
.github/build.sh
vendored
15
.github/build.sh
vendored
@ -36,7 +36,7 @@ BUILD_INIT_BAT
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
other_flags=
|
other_flags=
|
||||||
bin_postfix=
|
bin_suffix=
|
||||||
static_flag=
|
static_flag=
|
||||||
if [ $STATIC_DYNAMIC == "static" ]; then
|
if [ $STATIC_DYNAMIC == "static" ]; then
|
||||||
static_flag=-Dstatic=prebuilt
|
static_flag=-Dstatic=prebuilt
|
||||||
@ -49,19 +49,20 @@ if [ $PLATFORM_SHORT == "lin" ]; then
|
|||||||
# pthread_create, thanks to weak symbols in libstdc++.so (or something). See
|
# pthread_create, thanks to weak symbols in libstdc++.so (or something). See
|
||||||
# https://gcc.gnu.org/legacy-ml/gcc-help/2017-03/msg00081.html
|
# https://gcc.gnu.org/legacy-ml/gcc-help/2017-03/msg00081.html
|
||||||
other_flags+=$'\t-Db_asneeded=false\t-Dcpp_link_args=-Wl,--no-as-needed'
|
other_flags+=$'\t-Db_asneeded=false\t-Dcpp_link_args=-Wl,--no-as-needed'
|
||||||
|
if [ $STATIC_DYNAMIC == "static" ]; then
|
||||||
|
other_flags+=$'\t-Dbuild_render=true\t-Dbuild_font=true'
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ $PLATFORM_SHORT == "win" ]; then
|
if [ $PLATFORM_SHORT == "win" ]; then
|
||||||
bin_postfix=$bin_postfix.exe
|
bin_suffix=$bin_suffix.exe
|
||||||
fi
|
fi
|
||||||
if echo $RELTYPECFG | base64 -d | grep snapshot; then
|
if echo $RELTYPECFG | base64 -d | grep snapshot; then
|
||||||
other_flags+=$'\t-Dupdate_server=starcatcher.us/TPT'
|
other_flags+=$'\t-Dupdate_server=starcatcher.us/TPT'
|
||||||
fi
|
fi
|
||||||
meson -Dbuildtype=release -Dbuild_render=true -Dbuild_font=true -Db_pie=false -Db_staticpic=false -Db_lto=true $static_flag -Dinstall_check=true $other_flags `echo $RELTYPECFG | base64 -d` build
|
meson -Dbuildtype=release -Db_pie=false -Db_staticpic=false -Db_lto=true $static_flag -Dinstall_check=true $other_flags `echo $RELTYPECFG | base64 -d` build
|
||||||
cd build
|
cd build
|
||||||
ninja
|
ninja
|
||||||
if [ $PLATFORM_SHORT == "lin" ] || [ $PLATFORM_SHORT == "mac" ]; then
|
if [ $PLATFORM_SHORT == "lin" ] || [ $PLATFORM_SHORT == "mac" ]; then
|
||||||
strip powder$bin_postfix render$bin_postfix font$bin_postfix
|
strip powder$bin_suffix
|
||||||
fi
|
fi
|
||||||
7z a ../powder.zip powder$bin_postfix render$bin_postfix font$bin_postfix
|
cp powder$bin_suffix ..
|
||||||
cd ..
|
|
||||||
7z a powder.zip README.md LICENSE
|
|
||||||
|
11
.github/workflows/build.yaml
vendored
11
.github/workflows/build.yaml
vendored
@ -44,10 +44,13 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- platform_short: lin
|
- platform_short: lin
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
|
suffix: ''
|
||||||
- platform_short: mac
|
- platform_short: mac
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
|
suffix: ''
|
||||||
- platform_short: win
|
- platform_short: win
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
|
suffix: '.exe'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
@ -73,11 +76,11 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.get_release_info.outputs.upload_url }}
|
upload_url: ${{ steps.get_release_info.outputs.upload_url }}
|
||||||
asset_path: powder.zip
|
asset_path: powder${{ matrix.suffix }}
|
||||||
asset_name: powder-${{ steps.get_type.outputs.NAME }}-${{ matrix.platform_short }}64.zip
|
asset_name: powder-${{ steps.get_type.outputs.NAME }}-${{ matrix.platform_short }}64${{ matrix.suffix }}
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: steps.get_type.outputs.TYPE == 'dev' && matrix.static_dynamic == 'static'
|
if: steps.get_type.outputs.TYPE == 'dev' && matrix.static_dynamic == 'static'
|
||||||
with:
|
with:
|
||||||
path: powder.zip
|
path: powder${{ matrix.suffix }}
|
||||||
name: powder-${{ steps.get_type.outputs.NAME }}-${{ matrix.static_dynamic }}-${{ matrix.platform_short }}64.zip
|
name: powder-${{ steps.get_type.outputs.NAME }}-${{ matrix.static_dynamic }}-${{ matrix.platform_short }}64${{ matrix.suffix }}
|
||||||
|
Reference in New Issue
Block a user