Skip to content

Commit

Permalink
Switch from Travis to Github Actions for CI (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
bovine authored Dec 30, 2020
1 parent f10c47a commit e7d7d75
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 28 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/linux-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is a basic workflow to help you get started with Actions

name: Linux CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update -qq
sudo apt-get install -y gcc-7 g++-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7
sudo apt-get install -y tcl8.6-dev tcllib libyajl-dev
- name: configure
run: |
autoreconf -vi
./configure --with-tcl=/usr/lib/tcl8.6
- name: make
run: make
- name: install
run: sudo make install
- name: test
run: make test
36 changes: 36 additions & 0 deletions .github/workflows/mac-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Mac CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
brew update
brew install tcl-tk || true
brew install yajl
sudo mkdir -p /usr/local
sudo ln -sf /usr/local/opt/tcl-tk/include /usr/local/include/tcl8.6
sudo cp /usr/local/opt/tcl-tk/lib/libtcl* /usr/local/lib
sudo ln -sf /usr/local/opt/tcl-tk/bin/tclsh8.6 /usr/local/bin/tclsh
sudo ln -sf /usr/local/opt/tcl-tk/bin/tclsh8.6 /usr/local/bin/tclsh8.6
- name: configure
run: |
autoreconf -vi
./configure --with-tcl=/usr/local/opt/tcl-tk/lib --prefix=/usr/local
- name: make
run: make
- name: install
run: sudo make install
- name: make test
run: make test

27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/flightaware/yajl-tcl.svg?branch=master)](https://travis-ci.org/flightaware/yajl-tcl)
![Linux CI](https://github.com/flightaware/yajl-tcl/workflows/Linux%20CI/badge.svg)
![Mac CI](https://github.com/flightaware/yajl-tcl/workflows/Mac%20CI/badge.svg)

### This is yajl-tcl, a direct Tcl interface to the yajl JSON generator library.

Expand Down

0 comments on commit e7d7d75

Please sign in to comment.