This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
fix(ci): point to the engine correctly #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [pull_request, push] | |
jobs: | |
sdk: | |
strategy: | |
matrix: | |
target: [x64-generic] | |
engine: [cdbeda788a293fa29665dc3fa3d6e63bd221cb0d] | |
mode: [release] | |
buildtype: [release] | |
runs-on: ubuntu-latest | |
container: archlinux:latest | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Fetch Engine | |
run: | | |
curl -L "https://github.com/ardera/flutter-ci/releases/download/engine%2F${{ matrix.engine }}/${{ matrix.target }}.tar.xz" -o flutter-engine.tar.xz | |
mkdir flutter-engine | |
tar -xf flutter-engine.tar.xz -C flutter-engine | |
pushd flutter-engine | |
ln -s libflutter_engine.so.${{ matrix.mode }} libflutter_engine.so | |
popd | |
rm flutter-engine.tar.xz | |
- name: Install dependencies | |
run: | | |
pacman -Syu --noconfirm | |
pacman -S --noconfirm base-devel meson pkg-config ninja wayland wayland-protocols \ | |
wlroots libxdg-basedir spdlog glib2 packagekit yaml-cpp udev glm cairo \ | |
libglvnd vulkan-icd-loader libcrossguid util-linux-libs jsoncpp libxkbcommon accountsservice \ | |
libdrm libevdev upower | |
- name: Configure | |
run: meson setup packages/gokai_sdk builddir -Dprefix=/usr -Dflutter-engine=$(readlink -e flutter-engine) -Dbuildtype=${{ matrix.buildtype }} | |
- name: Build | |
run: ninja -C builddir | |
- name: Install | |
run: | | |
mkdir installdir | |
DESTDIR=$(readlink -e installdir) ninja -C builddir install | |
cp flutter-engine/flutter_embedder.h installdir/usr/include | |
cp flutter-engine/libflutter_engine.so.${{ matrix.mode }} installdir/usr/lib/libflutter_engine.so | |
cp flutter-engine/icudtl.dat installdir/usr/lib/gokai | |
# TODO: make installdir an artifact | |
find installdir |