Changeset - r24840:38cda9f655b2
[Not reviewed]
master
0 1 0
Patric Stout - 3 years ago 2021-02-19 10:05:00
truebrain@openttd.org
Fix: [Actions] build our allegro driver too in our CI

This prevents us breaking it without realising.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
.github/workflows/ci-build.yml
Show inline comments
 
@@ -43,96 +43,97 @@ jobs:
 
        echo "::endgroup::"
 

	
 
    - name: Install GCC problem matcher
 
      uses: ammaraskar/gcc-problem-matcher@master
 

	
 
    - name: Build
 
      run: |
 
        mkdir build
 
        cd build
 

	
 
        echo "::group::CMake"
 
        emcmake cmake .. -DHOST_BINARY_DIR=../build-host
 
        echo "::endgroup::"
 

	
 
        echo "::group::Build"
 
        echo "Running on $(nproc) cores"
 
        emmake make -j$(nproc)
 
        echo "::endgroup::"
 

	
 
  linux:
 
    name: Linux
 

	
 
    strategy:
 
      fail-fast: false
 
      matrix:
 
        include:
 
          - compiler: clang
 
            cxxcompiler: clang++
 
          - compiler: gcc
 
            cxxcompiler: g++
 

	
 
    runs-on: ubuntu-20.04
 
    env:
 
      CC: ${{ matrix.compiler }}
 
      CXX: ${{ matrix.cxxcompiler }}
 

	
 
    steps:
 
    - name: Checkout
 
      uses: actions/checkout@v2
 

	
 
    - name: Install dependencies
 
      run: |
 
        echo "::group::Update apt"
 
        sudo apt-get update
 
        echo "::endgroup::"
 

	
 
        echo "::group::Install dependencies"
 
        sudo apt-get install -y --no-install-recommends \
 
          liballegro4-dev \
 
          libfontconfig-dev \
 
          libicu-dev \
 
          liblzma-dev \
 
          liblzo2-dev \
 
          libsdl1.2-dev \
 
          libsdl2-dev \
 
          zlib1g-dev \
 
          # EOF
 
        echo "::endgroup::"
 
      env:
 
        DEBIAN_FRONTEND: noninteractive
 

	
 
    - name: Get OpenGFX
 
      run: |
 
        mkdir -p ~/.local/share/openttd/baseset
 
        cd ~/.local/share/openttd/baseset
 

	
 
        echo "::group::Download OpenGFX"
 
        curl -L https://cdn.openttd.org/opengfx-releases/0.6.0/opengfx-0.6.0-all.zip -o opengfx-all.zip
 
        echo "::endgroup::"
 

	
 
        echo "::group::Unpack OpenGFX"
 
        unzip opengfx-all.zip
 
        echo "::endgroup::"
 

	
 
        rm -f opengfx-all.zip
 

	
 
    - name: Install GCC problem matcher
 
      uses: ammaraskar/gcc-problem-matcher@master
 

	
 
    - name: Build
 
      run: |
 
        mkdir build
 
        cd build
 

	
 
        echo "::group::CMake"
 
        cmake ..
 
        echo "::endgroup::"
 

	
 
        echo "::group::Build"
 
        echo "Running on $(nproc) cores"
 
        make -j$(nproc)
 
        echo "::endgroup::"
 

	
 
    - name: Test
 
      run: |
 
        cd build
 
        make -j$(nproc) test
0 comments (0 inline, 0 general)