Skip to content

Commit

Permalink
Added Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
naqvis committed Jan 27, 2021
1 parent b11bfe0 commit aeab992
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/brotli-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/brotli/lib.cr
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit aeab992

Please sign in to comment.