New CI using Github Actions
This commit is contained in:
14
.github/Dockerfile.CI
vendored
Normal file
14
.github/Dockerfile.CI
vendored
Normal 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
12
.github/workflows/main.yml
vendored
Normal 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
|
16
.travis.yml
16
.travis.yml
@@ -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
|
Reference in New Issue
Block a user