Skip to content

Commit

Permalink
might fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fokkonaut committed Mar 7, 2024
1 parent 5a326e4 commit 55683c9
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,31 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest, ubuntu-18.04]
os: [ubuntu-latest, macOS-latest, windows-latest, ubuntu-20.04]
include:
- os: ubuntu-latest
cmake-args: -G "Unix Makefiles"
cmake-args: -G Ninja
build-args: --parallel
package-file: F-Client-*-linux_x86_64.tar.xz
env:
CFLAGS: -Wdeclaration-after-statement -Werror
CXXFLAGS: -Werror
- os: ubuntu-18.04
- os: ubuntu-20.04
cmake-path: /usr/bin/
cmake-args: -G "Unix Makefiles"
cmake-args: -G Ninja
package-file: F-Client-*-linux_x86_64.tar.xz
env:
CFLAGS: -Wdeclaration-after-statement -Werror
CXXFLAGS: -Werror
- os: macOS-latest
cmake-args: -G "Unix Makefiles"
cmake-args: -G Ninja
build-args: --parallel
package-file: F-Client-*-osx.dmg
env:
CFLAGS: -Wdeclaration-after-statement -Werror
CXXFLAGS: -Werror
- os: windows-latest
cmake-args: -G "Visual Studio 16 2019" -A x64
cmake-args: -A x64
package-file: F-Client-*-win64.zip
env:
CFLAGS: /WX
Expand All @@ -47,13 +47,17 @@ jobs:
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt-get update -y
sudo apt-get install pkg-config cmake libfreetype6-dev libsdl2-dev -y
sudo apt-get install pkg-config cmake ninja-build libfreetype6-dev libsdl2-dev -y
- name: Prepare MacOS
if: contains(matrix.os, 'macOS')
run: |
brew update
brew install pkg-config sdl2
brew update || true
brew install pkg-config sdl2 python3 ninja || true
# --overwrite for: Target /usr/local/bin/2to3 already exists.
brew link --overwrite python@3.10
brew upgrade freetype
sudo rm -rf /Library/Developer/CommandLineTools

- name: Build in debug mode
env: ${{ matrix.env }}
Expand Down

0 comments on commit 55683c9

Please sign in to comment.