New CI using Github Actions

This commit is contained in:
Poul Sander
2022-03-13 12:31:33 +01:00
parent c220f4b9e8
commit b4989c62a2
3 changed files with 26 additions and 16 deletions

14
.github/Dockerfile.CI vendored Normal file
View File

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

12
.github/workflows/main.yml vendored Normal file
View File

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

View File

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