From 87ef98f347c8ab1111a104408872313b4be934b0 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Sat, 26 Aug 2023 12:28:23 -0600 Subject: [PATCH] Use a build script to get latest version --- .github/workflows/build-libheif.sh | 11 +++++++++++ .github/workflows/main.yml | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build-libheif.sh diff --git a/.github/workflows/build-libheif.sh b/.github/workflows/build-libheif.sh new file mode 100644 index 00000000..6cd8b1bd --- /dev/null +++ b/.github/workflows/build-libheif.sh @@ -0,0 +1,11 @@ +#!/bin/bash +set -ex +sudo apt-get install -y git cmake make pkg-config libx265-dev libde265-dev libjpeg-dev libtool +git clone https://github.com/strukturag/libheif.git +cd libheif +mkdir build +cd build +cmake .. +make +sudo make install +sudo ldconfig diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 27da2339..7b7cf8a7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: with: go-version: '1.20' - name: "Install libheif" - run: "sudo apt-get install libheif-dev" + run: "./.github/workflows/build-libheif.sh" - run: './build.sh' # verify the thing compiles static: name: 'Go Static (1.20)' @@ -22,7 +22,7 @@ jobs: with: go-version: '1.20' - name: "Install libheif" - run: "sudo apt-get install libheif-dev" + run: "./.github/workflows/build-libheif.sh" - name: "Prepare: compile assets" run: "GOBIN=$PWD/bin go install -v ./cmd/compile_assets" - name: "Run: compile assets"