-
Notifications
You must be signed in to change notification settings - Fork 14
45 lines (34 loc) · 1000 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build
on: push
jobs:
test:
name: "Build"
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.0', '3.1', '3.2', '3.3']
libwebp: ['0.4.4', '1.0.2', '1.4.0']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Prepare libwebp ${{ matrix.libwebp }}
run: |
./spec/build.sh
env:
LIBWEBP_VERSION: ${{ matrix.libwebp }}
- name: Set envs
run: |
echo "LD_FLAGS=-L$HOME/opt/lib" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:$HOME/opt/lib" >> $GITHUB_ENV
echo "CPATH=$CPATH:$HOME/opt/include" >> $GITHUB_ENV
- name: Build package
run: |
bundle exec rake compile
- name: Test package
run: |
bundle exec rake spec