From: notaz Date: Tue, 13 Jun 2023 21:45:13 +0000 (+0300) Subject: attempt some CI building using github actions X-Git-Tag: v2.00~205 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=842f4e44d4699798a3f6cd3c56036e68d9ad0ee4;p=picodrive.git attempt some CI building using github actions --- diff --git a/.github/workflows/ci-libretro-default.yml b/.github/workflows/ci-libretro-default.yml new file mode 100644 index 00000000..eccbaf5e --- /dev/null +++ b/.github/workflows/ci-libretro-default.yml @@ -0,0 +1,11 @@ +name: CI (libretro default) +on: [push, pull_request] +jobs: + build-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - name: make + run: LDFLAGS=-Wl,--no-undefined make -f Makefile.libretro diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml new file mode 100644 index 00000000..7ab7d360 --- /dev/null +++ b/.github/workflows/ci-linux.yml @@ -0,0 +1,17 @@ +name: CI (Linux) +on: [push, pull_request] +jobs: + build-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - name: Install dependencies + run: | + sudo apt-get update -qq + sudo apt-get install -y libsdl1.2-dev libasound2-dev libpng-dev libz-dev + - name: configure + run: DUMP_CONFIG_LOG=1 ./configure + - name: make + run: make diff --git a/.github/workflows/ci-pandora.yml b/.github/workflows/ci-pandora.yml new file mode 100644 index 00000000..e922bcf0 --- /dev/null +++ b/.github/workflows/ci-pandora.yml @@ -0,0 +1,20 @@ +name: CI (pandora) +on: [push, pull_request] +jobs: + build-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - name: Install dependencies + run: | + whoami + sudo apt-get update -qq + sudo apt-get install -y wget + wget http://notaz.gp2x.de/misc/pnd/toolchains/arm-gcc-4.9.4_with_libs_small.tar.xz + tar -C /tmp/ -xf arm-gcc-4.9.4_with_libs_small.tar.xz + - name: configure + run: DUMP_CONFIG_LOG=1 PATH=$PATH:/tmp/arm-gcc-4.9.4/bin CPATH=/tmp/arm-gcc-4.9.4/arm-unknown-linux-gnueabi/sysroot/usr/local/include/ CROSS_COMPILE=arm-unknown-linux-gnueabi- ./configure --platform=pandora + - name: make + run: PATH=$PATH:/tmp/arm-gcc-4.9.4/bin CPATH=/tmp/arm-gcc-4.9.4/arm-unknown-linux-gnueabi/sysroot/usr/local/include/ CROSS_COMPILE=arm-unknown-linux-gnueabi- make diff --git a/configure b/configure index c87fab78..9659793d 100755 --- a/configure +++ b/configure @@ -65,6 +65,7 @@ config_mak="config.mak" fail() { echo "$@" + if test -n "$DUMP_CONFIG_LOG"; then cat config.log; fi exit 1 }