Skip to content

Commit 93b97be

Browse files
committed
CI: migrate from Travis to GH Actions
1 parent 1644553 commit 93b97be

File tree

5 files changed

+59
-73
lines changed

5 files changed

+59
-73
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# GitHub actions workflow.
2+
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
3+
4+
name: Build+Test CI
5+
6+
on:
7+
push:
8+
branches: [main]
9+
tags: [v*]
10+
pull_request:
11+
types: [opened]
12+
branches: [main]
13+
14+
jobs:
15+
Linux:
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest]
19+
cc: [gcc, clang]
20+
runs-on: ${{ matrix.os }}
21+
env:
22+
CC: ${{ matrix.cc }}
23+
steps:
24+
- run: sudo apt-get install -y libfl-dev
25+
- uses: actions/checkout@v2
26+
- run: make distcheck
27+
28+
macOS:
29+
strategy:
30+
matrix:
31+
os: [macos-latest]
32+
cc: [clang]
33+
runs-on: ${{ matrix.os }}
34+
env:
35+
CC: ${{ matrix.cc }}
36+
steps:
37+
- run: brew install flex bison
38+
- uses: actions/checkout@v2
39+
- run: make
40+
- run: make check
41+
42+
Windows:
43+
strategy:
44+
matrix:
45+
os: [windows-latest]
46+
cc: [mingw32, mingw64]
47+
runs-on: ${{ matrix.os }}
48+
env:
49+
CC: /c/msys64/${{ matrix.cc }}/bin/clang.exe
50+
defaults:
51+
run:
52+
shell: bash
53+
steps:
54+
- run: choco install winflexbison3
55+
- uses: actions/checkout@v2
56+
- run: make YACC="win_bison -ld" LEX="win_flex"
57+
# Needs autom4te (from autoconf) when building from git.
58+
# - run: make check

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pcalc: The Programmer's calculator
22

3-
[![Build Status](https://travis-ci.org/vapier/pcalc.svg?branch=master)](https://travis-ci.org/vapier/pcalc)
3+
[![Build Status](https://github.com/vapier/pcalc/actions/workflows/build-test-ci/badge.svg)
44

55
There was always a loophole when it came to a need to covert between
66
hexadecimal / decimal / octal / binary.

travis/lib.sh

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

travis/main.sh

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

0 commit comments

Comments
 (0)