Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,16 @@ on:
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
basic-test:
runs-on: ubuntu-latest
env:
CMAKE_C_COMPILER: gcc
steps:
- uses: actions/checkout@v2
- name: install dependencies on ubuntu
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: sudo apt-get install -y libharfbuzz-dev
run: sudo ./tools/install-ubuntu-build-deps.sh
- name: build
run: |
mkdir -p build
cmake -B build
cmake --build build
- name: run
Expand Down
7 changes: 7 additions & 0 deletions tools/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ubuntu:26.04

COPY install-ubuntu-build-deps.sh /usr/local/bin

RUN install-ubuntu-build-deps.sh


12 changes: 12 additions & 0 deletions tools/install-ubuntu-build-deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

build_deps=(
build-essential
cmake
libfontconfig-dev
libharfbuzz-dev
)

export DEBIAN_FRONTEND="noninteractive"

apt-get -U install -y "${build_deps[@]}"