Skip to content

Commit

Permalink
Use a build script to get latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Aug 26, 2023
1 parent 590e5f9 commit 87ef98f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build-libheif.sh
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand All @@ -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"
Expand Down

0 comments on commit 87ef98f

Please sign in to comment.