Skip to content

Commit

Permalink
ci(release): add install libaom step (#440)
Browse files Browse the repository at this point in the history
* ci(release): add install libaom step

* ci(release): add prefix

* ci(release): add comment

* ci(release): fix

* ci(release): remove snapshot flag
  • Loading branch information
ykzts committed May 14, 2021
1 parent 518d2fc commit c600bdb
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/release.yml
Expand Up @@ -10,6 +10,10 @@ on:
tags:
- 'v*'

env:
LIBAOM_VERSION: 3.1.0
LIBWEBP_VERSION: 1.0.3

jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -18,7 +22,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.16

- name: Login on Docker Hub
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
Expand All @@ -29,20 +33,33 @@ jobs:
run: |
mkdir -p /tmp/src
cd /tmp/src
wget -O libwebp.tar.gz https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.0.3.tar.gz
wget -O libwebp.tar.gz https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-${LIBWEBP_VERSION}.tar.gz
tar -xzf libwebp.tar.gz -C /tmp/src
rm libwebp.tar.gz
cd /tmp/src/libwebp-1.0.3
cd /tmp/src/libwebp-${LIBWEBP_VERSION}
./configure --prefix /tmp/libwebp
make -j4
make install
- name: Install libaom
run: |
mkdir -p /tmp/src
cd /tmp/src
wget -O libaom.tar.gz https://storage.googleapis.com/aom-releases/libaom-${LIBAOM_VERSION}.tar.gz
tar -xzf libaom.tar.gz -C /tmp/src/libaom-${LIBAOM_VERSION}
rm libaom.tar.gz
mkdir -p /tmp/src/aom_build
cd /tmp/src/aom_build
cmake /tmp/src/libaom-${LIBAOM_VERSION} -DCMAKE_INSTALL_PREFIX=/tmp/libaom
make -j4
make install
- name: Release
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CGO_CFLAGS: -I/tmp/libwebp/include
CGO_LDFLAGS: -L/tmp/libwebp/lib -lwebp
CGO_CFLAGS: -I/tmp/libwebp/include -I/tmp/libaom/include
CGO_LDFLAGS: -L/tmp/libwebp/lib -lwebp -L/tmp/libaom/lib -laom

1 comment on commit c600bdb

@vercel
Copy link

@vercel vercel bot commented on c600bdb May 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.