Migrate fron Travis CI to GitHub actions.
This commit is contained in:
parent
5861677f5e
commit
e889152af7
|
@ -0,0 +1,44 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2020 CismonX <admin@cismon.net>
|
||||||
|
#
|
||||||
|
# Copying and distribution of this file, with or without modification, are
|
||||||
|
# permitted in any medium without royalty, provided the copyright notice and
|
||||||
|
# this notice are preserved. This file is offered as-is, without any warranty.
|
||||||
|
#
|
||||||
|
|
||||||
|
name: build-ctlseqs
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build library
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
env:
|
||||||
|
packages: autoconf automake libtool autoconf-archive dejagnu
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, macos-latest]
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Install dependencies (apt)
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
run: |
|
||||||
|
sudo apt update -qq
|
||||||
|
sudo apt install -qq ${packages}
|
||||||
|
- name: Install dependencies (homebrew)
|
||||||
|
if: ${{ matrix.os == 'macos-latest' }}
|
||||||
|
run: |
|
||||||
|
brew update
|
||||||
|
brew install ${packages}
|
||||||
|
- name: Configure build
|
||||||
|
run: |
|
||||||
|
autoreconf --install
|
||||||
|
./configure CFLAGS='-O0 -g -Wall -Wextra -Wpedantic'
|
||||||
|
- name: Compile
|
||||||
|
run: make
|
||||||
|
- name: Run tests
|
||||||
|
run: make check
|
||||||
|
- name: Install
|
||||||
|
run: make install
|
40
.travis.yml
40
.travis.yml
|
@ -1,40 +0,0 @@
|
||||||
#
|
|
||||||
# Copyright (C) 2020 CismonX <admin@cismon.net>
|
|
||||||
#
|
|
||||||
# Copying and distribution of this file, with or without modification, are
|
|
||||||
# permitted in any medium without royalty, provided the copyright notice and
|
|
||||||
# this notice are preserved. This file is offered as-is, without any warranty.
|
|
||||||
#
|
|
||||||
|
|
||||||
language: c
|
|
||||||
|
|
||||||
os:
|
|
||||||
- linux
|
|
||||||
- osx
|
|
||||||
|
|
||||||
dist: focal
|
|
||||||
|
|
||||||
compiler:
|
|
||||||
- gcc
|
|
||||||
- clang
|
|
||||||
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
update: true
|
|
||||||
packages:
|
|
||||||
- autoconf-archive
|
|
||||||
- dejagnu
|
|
||||||
homebrew:
|
|
||||||
update: true
|
|
||||||
packages:
|
|
||||||
- autoconf-archive
|
|
||||||
- dejagnu
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- test $TRAVIS_OS_NAME$CC = osxgcc && export CC=gcc-9 || true
|
|
||||||
|
|
||||||
script:
|
|
||||||
- autoreconf --install
|
|
||||||
- ./configure CFLAGS='-O0 -g -Wall -Wextra -Wpedantic'
|
|
||||||
- make
|
|
||||||
- sudo make install
|
|
Loading…
Reference in New Issue