forked from westonplatter/phashion
-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (41 loc) · 1.11 KB
/
ci.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
41
42
on:
push:
branches: [ master ]
pull_request:
branches: [ '*' ]
jobs:
test:
runs-on: ${{matrix.os}}
strategy:
matrix:
os:
- 'ubuntu-latest'
- 'macos-14'
continue-on-error: true
steps:
- uses: actions/checkout@v3
- name: Set up Ruby 3.1
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
- name: Install dev dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install -y libpng-dev libjpeg-dev libsqlite3-dev
- name: Install dev dependencies (macOS)
if: matrix.os == 'macos-14'
run: brew install libpng jpeg sqlite3 imagemagick
- name: Install dependencies
run: bundle install
- name: Compile
run: bundle exec rake compile
- name: Post-Compile
if: failure()
run: cat ext/phashion_ext/mkmf.log
- name: Run tests
run: bundle exec rake
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: dist-without-markdown
path: |
pkg/*.gem