diff options
author | Neal Gompa <ngompa13@gmail.com> | 2022-04-22 14:48:32 +0300 |
---|---|---|
committer | Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com> | 2022-04-22 16:09:08 +0300 |
commit | 69e7ab76bd4134e5abce98335e8d23f7b975e115 (patch) | |
tree | 5ecfe12eaeb17ff847456057ca9cb1baf38638ee | |
parent | 2e616997cc2b7b5b178541a75cf493f13dc9cf56 (diff) |
Test builds via GitHub Actions
This introduces Linux CI via GitHub Actions to ensure the code compiles
when contributions are submitted.
-rw-r--r-- | .github/workflows/build.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..717ee006 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +name: Build + +on: [push, pull_request] + +jobs: + linux: + runs-on: ubuntu-latest + + strategy: + matrix: + docker: + - 'registry.fedoraproject.org/fedora:latest' + fail-fast: false + + container: ${{ matrix.docker }} + + steps: + - name: Set up DNF download cache + id: dnf-cache + uses: actions/cache@v3 + with: + path: /var/cache/dnf + key: ${{ runner.os }}-dnfcache + - name: Install pre-requisites + run: dnf --assumeyes --setopt=install_weak_deps=False install + gcc-c++ cmake make /usr/bin/git + 'pkgconfig(gl)' 'pkgconfig(glu)' + 'pkgconfig(sdl2)' 'pkgconfig(SDL2_net)' + 'pkgconfig(gtk+-2.0)' 'pkgconfig(ogg)' 'pkgconfig(vorbis)' + freeimage-devel 'pkgconfig(openal)' 'pkgconfig(libjpeg)' + 'pkgconfig(theora)' 'pkgconfig(bzip2)' 'pkgconfig(freetype2)' + - uses: actions/checkout@v2 + with: + fetch-depth: 0 # Shallow clones speed things up + - name: cmake configure + run: cmake -S ./Projects -B ./Build + - name: compile with cmake + run: cmake --build ./Build --verbose -j4 |