-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #814 from libgit2/actions
Move the bulk of CI to Actions
- Loading branch information
Showing
3 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Rugged CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- maint/* | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: [ '2.3.7', '2.4.6', '2.5.5', '2.6.2' ] | ||
os: [ ubuntu-18.04, macOS-10.14 ] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: update submodule | ||
run: git submodule update --init | ||
- name: Install Linux packages | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt update | ||
sudo apt install -y cmake libssh2-1-dev openssh-client openssh-server | ||
- name: Install macOS packages | ||
if: runner.os == 'macOS' | ||
run: ./vendor/libgit2/azure-pipelines/setup-osx.sh | ||
- name: Set up Ruby on Linux | ||
if: runner.os == 'Linux' | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
version: ${{ matrix.ruby }} | ||
- name: Set up Ruby on macOS | ||
if: runner.os == 'macOS' | ||
run: | | ||
brew install rbenv | ||
rbenv install ${{ matrix.ruby }} | ||
rbenv local ${{ matrix.ruby }} | ||
- name: run build | ||
run: | | ||
if [ -x rbenv ]; then eval "$(rbenv init -)"; fi | ||
ruby --version | ||
gem install bundler | ||
bundle install --path vendor | ||
./script/travisbuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,7 @@ os: | |
- osx | ||
|
||
rvm: | ||
- 2.3.3 | ||
- 2.4.0 | ||
- 2.5.0 | ||
- 2.6 | ||
- ruby-head | ||
- rbx-2 | ||
|
||
addons: | ||
apt: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters