Skip to content

Commit

Permalink
gha: test build harfbuzz linux
Browse files Browse the repository at this point in the history
  • Loading branch information
MIRIMIRIM committed Nov 10, 2024
1 parent 6d83ff8 commit 038216b
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/harfbuzz-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: build

on:
push:
branches: [ "master" ]
paths:
- 'HarfBuzz/version'
workflow_dispatch:

jobs:
build:
strategy:
matrix:
env:
# - os: windows-latest
# identifier: win
# - os: macos-latest
# identifier: osx
- os: ubuntu-latest
identifier: linux
arch: ['x64'] # 'arm64'

name: build-${{ matrix.env.os }}-${{ matrix.arch }}
runs-on: ${{ matrix.env.os }}

steps:
- uses: actions/checkout@v4

- name: install deps (ubuntu)
if: matrix.env.os == 'ubuntu-latest'
run: |
sudo apt-get update && sudo apt-get install -y meson ninja-build nasm
hb_ver = `cat HarfBuzz/version`
git clone --recurse-submodules https://github.com/harfbuzz/harfbuzz.git -b ${hb_ver} --depth=1 harfbuzz-${hb_ver}
cd harfbuzz-${hb_ver}
- name: build harbuzz-static
if: matrix.env.os == 'ubuntu-latest'
run: |
meson --default-library=static -Dtests=disabled -Dintrospection=disabled -Ddocs=disabled -Dexperimental_api=true -Dbuildtype=release build/linux-x64-static
meson compile -C build/linux-x64-static
- name: build harbuzz-shared
if: matrix.env.os == 'ubuntu-latest'
run: |
meson -Dtests=disabled -Dintrospection=disabled -Ddocs=disabled -Dexperimental_api=true -Dbuildtype=release build/linux-x64
meson compile -C build/linux-x64
- name: upload
uses: actions/upload-artifact@v4
with:
name: harbuzz_linux-x64
path: |
build/linux-x64-static/src/*
build/linux-x64/src/*
1 change: 1 addition & 0 deletions HarfBuzz/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10.1.0

0 comments on commit 038216b

Please sign in to comment.