Skip to content

Commit 4b244d1

Browse files
authored
Switch from Travis/Appveyor to Github Actions for CI (#16)
1 parent 52c7f73 commit 4b244d1

5 files changed

Lines changed: 53 additions & 28 deletions

File tree

.github/workflows/linux-ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Linux CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: make
17+
run: make
18+
- name: make test
19+
run: make test

.github/workflows/windows-ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Windows CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
# Path to the solution file relative to the root of the project.
11+
SOLUTION_FILE_PATH: .
12+
13+
# Configuration type to build.
14+
# You can convert this to a build matrix if you need coverage of multiple configuration types.
15+
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
16+
BUILD_CONFIGURATION: Release
17+
18+
jobs:
19+
build:
20+
runs-on: windows-latest
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
25+
- name: Configure
26+
run: mkdir build && cd build && cmake ..
27+
28+
- name: Build
29+
run: cmake --build build --config ${{env.BUILD_CONFIGURATION}} -- /property:Prefer32bit=false /p:Platform=x64
30+
31+
- name: Test
32+
run: build\${{env.BUILD_CONFIGURATION}}\metar_test.exe

.travis.yml

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[![Build Status](https://travis-ci.org/flightaware/mdsplib.svg?branch=master)](https://travis-ci.org/flightaware/mdsplib)
2-
[![Build status](https://ci.appveyor.com/api/projects/status/b04xo1u432ttg8i4/branch/master?svg=true)](https://ci.appveyor.com/project/snoe925/mdsplib/branch/master)
1+
![Linux CI](https://github.com/flightaware/mdsplib/workflows/Linux%20CI/badge.svg)
2+
![Windows CI](https://github.com/flightaware/mdsplib/workflows/Windows%20CI/badge.svg)
33

44
METAR Decoder Software Package Library
55
===

appveyor.yml

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

0 commit comments

Comments
 (0)