Skip to content

Commit

Permalink
Try no 2 to fix Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-cpp committed Nov 2, 2023
1 parent 1f9cc65 commit 8894fb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-20.04]
os: [windows-latest, macos-latest, ubuntu-22.04]
fail-fast: false
steps:
- name: Add msbuild to PATH
Expand All @@ -18,13 +18,7 @@ jobs:
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get install build-essential git make cmake autoconf automake \
libtool pkg-config libasound2-dev libpulse-dev libaudio-dev libjack-dev \
libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev \
libxinerama-dev libxxf86vm-dev libxss-dev libgl1-mesa-dev libdbus-1-dev \
libudev-dev libgles2-mesa-dev libegl1-mesa-dev libibus-1.0-dev \
fcitx-libs-dev libsamplerate0-dev libsndio-dev libwayland-dev \
libxkbcommon-dev libdrm-dev libgbm-dev
sudo apt-get install build-essential git make cmake autoconf automake libpng-dev
shell: bash
- name: Clone repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -64,7 +58,7 @@ jobs:
- name: Download artifacts for Linux x64
uses: actions/download-artifact@v3
with:
name: FreeType-ubuntu-20.04
name: FreeType-ubuntu-22.04
path: artifacts-linux-x64
- name: Run CAKE
run: dotnet run --project ./build/Build.csproj -- "--target=Package"
Expand Down
3 changes: 2 additions & 1 deletion build/BuildLinuxTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public override void Run(BuildContext context)
context.CreateDirectory(buildDir);
var env = new Dictionary<string, string>
{
{ "CFLAGS", "-fPIC" }
{ "CFLAGS", "-fPIC" },
{ "CXXFLAGS", "-fPIC" }
};
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildDir, Arguments = "../ -DBUILD_SHARED_LIBS=true -DFT_DISABLE_HARFBUZZ=TRUE -DCMAKE_BUILD_TYPE=Release", EnvironmentVariables = env });
context.StartProcess("make", new ProcessSettings { WorkingDirectory = buildDir });
Expand Down

0 comments on commit 8894fb2

Please sign in to comment.