Browse Source

add github workflow (#78)

pull/79/head
nillerusr 2 years ago committed by GitHub
parent
commit
99e6aee472
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 37
      .github/workflows/build.yml
  2. 9
      scripts/build-android-armv7a.sh
  3. 8
      scripts/build-ubuntu-amd64.sh
  4. 9
      scripts/build-ubuntu-i386.sh
  5. 9
      scripts/deploy.sh

37
.github/workflows/build.yml

@ -0,0 +1,37 @@ @@ -0,0 +1,37 @@
name: Build tests
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
build-linux-32:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Build linux-i386
run: |
scripts/build-ubuntu-i386.sh
build-linux-64:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Build linux-amd64
run: |
scripts/build-ubuntu-amd64.sh
build-android-armv7a:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Build android-armv7a
run: |
scripts/build-android-armv7a.sh

9
scripts/build-android-armv7a.sh

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
#!/bin/sh
git submodule init && git submodule update
wget https://dl.google.com/android/repository/android-ndk-r10e-linux-x86_64.zip -o /dev/null
unzip android-ndk-r10e-linux-x86_64.zip
export ANDROID_NDK_HOME=$PWD/android-ndk-r10e/
export NDK_HOME=$PWD/android-ndk-r10e/
./waf configure -T debug --android=armeabi-v7a-hard,4.9,21 --togles --disable-warns &&
./waf build

8
scripts/build-ubuntu-amd64.sh

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
#!/bin/sh
git submodule init && git submodule update
sudo apt-get update
sudo apt-get install -f -y libopenal-dev g++-multilib gcc-multilib libpng-dev libjpeg-dev libfreetype6-dev libfontconfig1-dev libcurl4-gnutls-dev libsdl2-dev zlib1g-dev libbz2-dev
./waf configure -T debug --64bits --disable-warns &&
./waf build

9
scripts/build-ubuntu-i386.sh

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
#!/bin/sh
git submodule init && git submodule update
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -f -y libopenal-dev:i386 g++-multilib gcc-multilib libpng-dev:i386 libjpeg-dev:i386 libfreetype6-dev:i386 libfontconfig1-dev:i386 libcurl4-gnutls-dev:i386 libsdl2-dev:i386 zlib1g-dev:i386 libbz2-dev:i386
PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig ./waf configure -T debug --disable-warns &&
./waf build

9
scripts/deploy.sh

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
#!/bin/sh
git submodule init && git submodule update
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -f -y libopenal-dev:i386 g++-multilib gcc-multilib libpng-dev:i386 libjpeg-dev:i386 libfreetype6-dev:i386 libfontconfig1-dev:i386 libcurl4-gnutls-dev:i386 libsdl2-dev:i386 zlib1g-dev:i386 libbz2-dev:i386
PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig ./waf configure -T debug
./waf build --target=engine
Loading…
Cancel
Save