mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-04 04:14:22 +02:00
Migrate CI from travis-ci.com to GitHub Actions
This commit is contained in:
parent
630e0104d5
commit
43df7d5331
9 changed files with 57 additions and 27 deletions
|
@ -9,7 +9,7 @@ NATIVE_DIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
|||
# Run script inside a nix shell if it is available.
|
||||
if command -v nix-shell && [ $NIX_PATH ] && [ -z $IN_NIX_SHELL ]; then
|
||||
cd ${NATIVE_DIR}
|
||||
nix-shell --pure --command "./build.sh $1"
|
||||
nix-shell --pure --run "NIX_PATH=${NIX_PATH} ./build.sh $1"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
@ -34,7 +34,9 @@ case $1 in
|
|||
# Cross-compile release build for all platforms.
|
||||
scons platform=linux bits=64 target=release -j$(nproc)
|
||||
if [ $IN_NIX_SHELL ]; then
|
||||
nix-shell --pure --argstr system i686-linux --run 'scons platform=linux bits=32 target=release -j$(nproc)'
|
||||
nix-shell --pure --argstr system i686-linux --run "NIX_PATH=${NIX_PATH} scons platform=linux bits=32 target=release -j$(nproc)"
|
||||
else
|
||||
scons platform=linux bits=32 target=release -j$(nproc)
|
||||
fi
|
||||
scons platform=windows bits=64 target=release -j$(nproc)
|
||||
#scons platform=windows bits=32 target=release -j$(nproc)
|
||||
|
|
|
@ -6,6 +6,7 @@ with (import <nixpkgs> {
|
|||
mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
binutils.bintools
|
||||
cacert
|
||||
cmake
|
||||
git
|
||||
libxkbcommon
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue