Welcome to mirror list, hosted at ThFree Co, Russian Federation.

build.yml « workflows « .github - github.com/WolfireGames/overgrowth.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 09621b754f36d78bde538436242590c9344ae2f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build

on: [push, pull_request]

jobs:
  linux:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        docker:
          - 'registry.fedoraproject.org/fedora:latest'
          - 'quay.io/centoshyperscale/centos:stream8'
      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

  windows:
    runs-on: windows-latest

    steps:
      - 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

  macos:
    runs-on: macos-12

    steps:
      - 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