Skip to content

Commit 7456f1b

Browse files
committed
Replace Travis with GitHub Actions
1 parent c1d3ba8 commit 7456f1b

File tree

5 files changed

+31
-18
lines changed

5 files changed

+31
-18
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: ci
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
ruby: [2.4, 2.7]
11+
env:
12+
PLATFORM: x86_64-linux
13+
TAGLIB_VERSION: 1.11.1
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-ruby@v1
17+
with:
18+
ruby-version: ${{ matrix.ruby }}
19+
- name: Bundle install
20+
run: |
21+
gem install bundler
22+
bundle install
23+
- name: Install taglib
24+
run: bundle exec rake vendor
25+
- name: Compile
26+
run: TAGLIB_DIR=$PWD/tmp/x86_64-linux/taglib-$TAGLIB_VERSION LD_LIBRARY_PATH=$PWD/tmp/x86_64-linux/taglib-$TAGLIB_VERSION/lib bundle exec rake compile
27+
- name: Test
28+
run: bundle exec rake test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Makefile
99
# Editor
1010
.*.swp
1111
.redcar
12+
.idea
1213

1314
# Build
1415
/.yardoc

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ taglib-ruby currently supports the following:
1919
Contributions for more coverage of the library are very welcome.
2020

2121
[![Gem version][gem-img]][gem-link]
22-
[![Build status][travis-img]][travis-link]
22+
[![ci](https://github.com/robinst/taglib-ruby/workflows/ci/badge.svg)](https://github.com/robinst/taglib-ruby/actions?query=workflow%3Aci)
2323

2424
Installation
2525
------------
@@ -143,5 +143,3 @@ version 2.1 (LGPL) and Mozilla Public License (MPL).
143143
[taglib]: http://taglib.github.io/
144144
[gem-img]: https://badge.fury.io/rb/taglib-ruby.svg
145145
[gem-link]: https://rubygems.org/gems/taglib-ruby
146-
[travis-img]: https://api.travis-ci.org/robinst/taglib-ruby.png
147-
[travis-link]: https://travis-ci.org/robinst/taglib-ruby

tasks/gemspec_check.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
desc "Checks file list in .gemspec against files tracked in Git"
22
task :gemspec_check do |t|
3-
exclude = ['.gitignore', '.travis.yml']
3+
exclude = ['.gitignore', '.github/workflows/ci.yml']
44
git_files = `git ls-files`.split("\n") - exclude
55
gemspec_files = $gemspec.files
66

0 commit comments

Comments
 (0)