Skip to content

Commit

Permalink
Ensure Linux binaries are built with GLIBC_2.31 (Ubuntu 22.04)
Browse files Browse the repository at this point in the history
  • Loading branch information
martpie authored Jan 20, 2025
1 parent 304f07b commit 1431a67
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
qa:
# For QA (lint, test, etc), Linux is enough
# https://github.com/tauri-apps/tauri-action/issues/745#issuecomment-2024998604
runs-on: ubuntu-24.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
Expand All @@ -30,11 +30,6 @@ jobs:

- uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'

- name: Install dependencies (ubuntu only)
run: |
sudo apt-get update
Expand Down Expand Up @@ -84,7 +79,7 @@ jobs:
fail-fast: false
matrix:
# - include
platform: [macos-latest, ubuntu-24.04, windows-latest]
platform: [macos-latest, ubuntu-22.04, windows-latest]

runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -100,13 +95,8 @@ jobs:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'

- name: Install native dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-24.04'
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
Expand All @@ -130,7 +120,7 @@ jobs:
args: ${{ matrix.platform == 'macos-latest' && '--target universal-apple-darwin' || '' }}

- uses: actions/upload-artifact@v4
if: matrix.platform == 'ubuntu-24.04'
if: matrix.platform == 'ubuntu-22.04'
with:
name: binaries-linux
path: |
Expand Down

0 comments on commit 1431a67

Please sign in to comment.