From aeab99212c9bdcdf4b1721f07e0bb47b750a974a Mon Sep 17 00:00:00 2001 From: Ali Naqvi Date: Wed, 27 Jan 2021 12:14:31 +0800 Subject: [PATCH] Added Github Action --- .github/workflows/brotli-ci.yml | 3 +++ README.md | 6 +++--- src/brotli/lib.cr | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/brotli-ci.yml b/.github/workflows/brotli-ci.yml index a1b0194..2f76576 100644 --- a/.github/workflows/brotli-ci.yml +++ b/.github/workflows/brotli-ci.yml @@ -17,6 +17,9 @@ jobs: runs-on: ${{ matrix.os }} steps: + - name: install on linux + if: startsWith(matrix.os,'ubuntu') + run: sudo apt-get install libbrotli-dev - uses: actions/checkout@v2 - name: Install Crystal uses: oprypin/install-crystal@v1.3.0 diff --git a/README.md b/README.md index 7e489ff..f83872b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Crystal Brotli -![CI](https://github.com/naqvis/brotli/workflows/CI/badge.svg) -[![GitHub release](https://img.shields.io/github/release/naqvis/brotli.svg)](https://github.com/naqvis/brotli/releases) -[![Docs](https://img.shields.io/badge/docs-available-brightgreen.svg)](https://naqvis.github.io/brotli/) +![CI](https://github.com/naqvis/brotli.cr/workflows/CI/badge.svg) +[![GitHub release](https://img.shields.io/github/release/naqvis/brotli.svg)](https://github.com/naqvis/brotli.cr/releases) +[![Docs](https://img.shields.io/badge/docs-available-brightgreen.svg)](https://naqvis.github.io/brotli.cr/) Crystal bindings to the [Brotli](https://github.com/google/brotli) compression library. diff --git a/src/brotli/lib.cr b/src/brotli/lib.cr index 16c3160..4624fb8 100644 --- a/src/brotli/lib.cr +++ b/src/brotli/lib.cr @@ -1,5 +1,5 @@ module Compress::Brotli - @[Link(ldflags: "`command -v pkg-config > /dev/null && pkg-config --libs libbrotlicommon libbrotlidec libbrotlienc 2> /dev/null|| printf %s '--llbrotlicommon --llbrotlidec --llbrotlienc'`")] + @[Link(ldflags: "`command -v pkg-config > /dev/null && pkg-config --libs libbrotlicommon libbrotlidec libbrotlienc 2> /dev/null|| printf %s '--lbrotlicommon --lbrotlidec --lbrotlienc'`")] lib LibBrotli alias Uint8T = UInt8