diff --git a/.github/Dockerfile.CI b/.github/Dockerfile.CI new file mode 100644 index 00000000..e9d4bb06 --- /dev/null +++ b/.github/Dockerfile.CI @@ -0,0 +1,14 @@ +FROM ubuntu:20.04 + +# Ubuntu 20.04 timezone fix +ENV TZ=UTC +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + +RUN apt-get update && apt-get install --no-install-recommends -y build-essential libgl1-mesa-dev libsdl2-dev libvorbis-dev libfreetype6-dev mingw-w64 + +RUN mkdir -p /staging/openarena + +COPY . /staging/openarena + +RUN cd /staging/openarena && \ +./travis-ci-build.sh \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..fb956a8e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,12 @@ +name: Build + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + - name: Build it + run: docker build . -f .github/Dockerfile.CI -t openarena_test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 04658ae1..00000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: c -compiler: - - gcc -# These fail because ioquake3 is missing vorbis -# Re-enable after they add vorbis or OA imports it -# - i686-w64-mingw32-gcc -# - x86_64-w64-mingw32-gcc - -script: ./travis-ci-build.sh - -before_install: - - sudo apt-get update -qq - - sudo apt-get install -q -y libgl1-mesa-dev libsdl1.2-dev libvorbis-dev libfreetype6-dev mingw-w64 - -notifications: - email: false