Skip to content

Commit

Permalink
ci: Switch to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed Mar 28, 2021
1 parent d36ece2 commit f9c18e8
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 46 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.git* export-ignore
.travis.yml export-ignore
35 changes: 35 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Linux

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt-get update -y
sudo apt-get install -y \
gcc-multilib \
acl \
libacl1-dev \
libacl1:i386 \
attr \
libattr1-dev \
libattr1:i386 \
libcap2-bin \
libcap-dev \
libcap2:i386
# Ubuntu doesn't let you install the -dev packages for both amd64 and
# i386 at once, so we make our own symlinks to fix -m32 -lacl -lattr -lcap
sudo ln -s libacl.so.1 /lib/i386-linux-gnu/libacl.so
sudo ln -s libattr.so.1 /lib/i386-linux-gnu/libattr.so
sudo ln -s libcap.so.2 /lib/i386-linux-gnu/libcap.so
- name: Run tests
run: |
make -j$(nproc) distcheck
14 changes: 14 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: macOS

on: [push, pull_request]

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2

- name: Run tests
run: |
make -j$(sysctl -n hw.ncpu) distcheck
44 changes: 0 additions & 44 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
Expand Up @@ -3,7 +3,8 @@

[![License](http://img.shields.io/badge/license-0BSD-blue.svg)](https://github.com/tavianator/bfs/blob/main/LICENSE)
[![Version](https://img.shields.io/github/v/tag/tavianator/bfs?label=version)](https://github.com/tavianator/bfs/releases)
[![Travis CI Status](https://api.travis-ci.com/tavianator/bfs.svg?branch=main)](https://travis-ci.com/tavianator/bfs)
[![Linux CI Status](https://github.com/tavianator/bfs/actions/workflows/linux.yml/badge.svg?branch=main)](https://github.com/tavianator/bfs/actions/workflows/linux.yml)
[![macOS CI Status](https://github.com/tavianator/bfs/actions/workflows/macos.yml/badge.svg?branch=main)](https://github.com/tavianator/bfs/actions/workflows/macos.yml)

Breadth-first search for your files.

Expand Down

0 comments on commit f9c18e8

Please sign in to comment.