Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
le0pard committed Aug 10, 2023
1 parent 37d01e0 commit 5fc455e
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build
on: push

jobs:
test:
name: "Build"
runs-on: ubuntu-latest
env:
LD_FLAGS: '-L$HOME/opt/lib'
LD_LIBRARY_PATH: '/lib:/usr/lib:/usr/local/lib:$HOME/opt/lib'
CPATH: '$CPATH:$HOME/opt/include'
strategy:
matrix:
ruby: ['2.7', '3.0', '3.1', '3.2']
libwebp: ['0.4.4', '1.0.2', '1.3.2']
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}

- name: Prepare libwebp
run: |
./spec/build.sh
env:
LIBWEBP_VERSION: ${{ matrix.libwebp }}

- name: Build package
run: |
bundle exec rake compile
- name: Test package
run: |
bundle exec rake spec
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ test/version_tmp
tmp
ext/webp_ffi/x86_64-darwin/
ext/webp_ffi/x86_64-linux/
ext/webp_ffi/aarch64-darwin/
.vagrant
Vagrantfile
1 change: 0 additions & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
ruby 3.2.2
nodejs 20.3.1
File renamed without changes.

0 comments on commit 5fc455e

Please sign in to comment.