From ecdad57d7050773dd5ecd678af955e129e2c09db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Sat, 13 Jun 2020 16:18:45 +0200 Subject: [PATCH 1/2] Add GitHub Actions CI --- .github/workflows/ci.yml | 97 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..c753c82a09 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,97 @@ +on: [push, pull_request] + +name: Continuous integration + +jobs: + ubuntu-build-bundled: + name: "Ubuntu: Build with bundled libraries" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y + libasound2-dev + libgl-dev + libglew-dev + libgtk2.0-dev + libjack-dev + libmad0-dev + libpulse-dev + libva-dev + libvorbis-dev + libxinerama-dev + libx11-dev + libxrandr-dev + libxtst-dev + nasm + - name: Configure + run: cmake -B build + - name: Build + run: cmake --build build + + ubuntu-build-system: + name: "Ubuntu: Build with system libraries" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y + ffmpeg + libasound2-dev + libgl-dev + libglew-dev + libgtk2.0-dev + libjack-dev + libjsoncpp-dev + libmad0-dev + libpulse-dev + libtomcrypt-dev + libtommath-dev + libva-dev + libvorbis-dev + libxinerama-dev + libx11-dev + libxrandr-dev + libxtst-dev + ninja-build + - name: Configure + # TODO: jsoncpp: https://github.com/stepmania/stepmania/issues/1883 + # TODO: png: https://github.com/stepmania/stepmania/issues/1881 + # TODO: tomcrypt: https://github.com/stepmania/stepmania/issues/1885 + run: cmake -G Ninja -B build + -DWITH_SYSTEM_FFMPEG=ON + -DWITH_SYSTEM_GLEW=ON + -DWITH_SYSTEM_JPEG=ON + -DWITH_SYSTEM_JSONCPP=OFF + -DWITH_SYSTEM_MAD=ON + -DWITH_SYSTEM_OGG=ON + -DWITH_SYSTEM_PCRE=ON + -DWITH_SYSTEM_PNG=OFF + -DWITH_SYSTEM_TOMCRYPT=OFF + -DWITH_SYSTEM_TOMMATH=ON + -DWITH_SYSTEM_ZLIB=ON + - name: Build + run: cmake --build build + + macos-build-bundled: + name: "macOS: Build with bundled libraries" + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: brew install + nasm + - name: Configure + run: cmake -B build + - name: Build + run: cmake --build build + + windows-build-bundled: + name: "Windows: Build with bundled libraries" + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - name: Configure + run: cmake -B build + - name: Build + run: cmake --build build From b24abc6f1f0d724e5a82cb20392ac27d47ae8bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Sat, 13 Jun 2020 20:00:58 +0200 Subject: [PATCH 2/2] Add GitHub Actions badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a6a00f4149..fa9073e440 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ StepMania is an advanced cross-platform rhythm game for home and arcade use. Advanced cross-platform rhythm game for home and arcade use. +[![Continuous integration](https://github.com/stepmania/stepmania/workflows/Continuous%20integration/badge.svg?branch=master)](https://github.com/stepmania/stepmania/actions?query=workflow%3A%22Continuous+integration%22+branch%3Amaster) [![Build Status](https://travis-ci.org/stepmania/stepmania.svg?branch=master)](https://travis-ci.org/stepmania/stepmania) [![Build status](https://ci.appveyor.com/api/projects/status/uvoplsnyoats81r2?svg=true)](https://ci.appveyor.com/project/Nickito12/stepmania)