-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.09 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
name: test
on: [push, pull_request]
jobs:
test:
name: ${{ matrix.os }} Ruby ${{ matrix.ruby }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu", "macos", "windows"]
ruby: ["3.3"]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install automake (macos)
if: ${{ matrix.os == 'macos' }}
run: |
brew install automake libdeflate
bundle exec rake htslib:build
- name: Install libdeflate & libcurl4 (ubuntu)
if: ${{ matrix.os == 'ubuntu' }}
run: |
sudo apt update -y
sudo apt install -yq libdeflate-dev libcurl4-openssl-dev
bundle exec rake htslib:build
- name: Update package databases (windows)
if: ${{ matrix.os == 'windows' }}
run: |
ridk exec pacman -Syu --noconfirm
- name: Build and test with Rake
run: |
bundle exec rake