Migrate CI from travis-ci.com to GitHub Actions

This commit is contained in:
Leroy Hopson 2020-11-06 12:57:25 +07:00 committed by Leroy Hopson
parent 630e0104d5
commit 43df7d5331
9 changed files with 57 additions and 27 deletions

View file

@ -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)

View file

@ -6,6 +6,7 @@ with (import <nixpkgs> {
mkShell {
buildInputs = with pkgs; [
binutils.bintools
cacert
cmake
git
libxkbcommon