From: John Tsiombikas Date: Mon, 19 Dec 2022 05:38:51 +0000 (+0200) Subject: autobuild X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=7ce1d3ab787a4cec24649eff37f5eaab58750332;p=summerhack autobuild --- diff --git a/.github/workflows/build_freebsd.yml b/.github/workflows/build_freebsd.yml new file mode 100644 index 0000000..cb79188 --- /dev/null +++ b/.github/workflows/build_freebsd.yml @@ -0,0 +1,45 @@ +name: FreeBSD build + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + build: + + runs-on: macos-12 + + steps: + - uses: actions/checkout@v3 + + - name: cache datafiles + id: cache-data + uses: actions/cache@v3 + with: + path: data + key: data-cache1 + + + - name: download datafiles + run: | + wget http://nuclear.mutantstargoat.com/sw/demos/summerhack-data.tar.gz + tar xzvf summerhack-data.tar.gz + + - name: FreeBSD build + uses: vmactions/freebsd-vm@v0 + with: + run: | + pkg install -y gmake mesa-libs sdl + gmake + + - uses: actions/upload-artifact@v3 + with: + name: summerhack-freebsd + path: | + data/ + sumhack-thelab + 3dengfx.conf + demoscript + +# vi:ts=2 sts=2 sw=2 expandtab: diff --git a/.github/workflows/build_gnulinux.yml b/.github/workflows/build_gnulinux.yml new file mode 100644 index 0000000..0bc22a2 --- /dev/null +++ b/.github/workflows/build_gnulinux.yml @@ -0,0 +1,45 @@ +name: GNU/Linux build + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: cache datafiles + id: cache-data + uses: actions/cache@v3 + with: + path: data + key: data-cache1 + + - name: install dependencies + run: | + sudo apt-get update + sudo apt-get install libgl-dev libglu1-mesa-dev libsdl1.2-dev + + - name: download datafiles + run: | + wget http://nuclear.mutantstargoat.com/sw/demos/summerhack-data.tar.gz + tar xzvf summerhack-data.tar.gz + + - name: build demo + run: make + + - uses: actions/upload-artifact@v3 + with: + name: summerhack-gnulinux + path: | + data/ + sumhack-thelab + 3dengfx.conf + demoscript + +# vi:ts=2 sts=2 sw=2 expandtab: diff --git a/README.md b/README.md index 1373594..f9adc92 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ Summerhack / The Lab ==================== +![GNU/Linux build status](https://github.com/TheLabDemos/summerhack/actions/workflows/build_gnulinux.yml/badge.svg) +![FreeBSD build status](https://github.com/TheLabDemos/summerhack/actions/workflows/build_freebsd.yml/badge.svg) + Summerhack was a short and sweet demo I've written during the summer of 2005 for a random on-line competition. Mainly it was a showcase of the 3D engine I was writing back then with the help of Michael Georgoulopoulos: 3dengfx, and which was