Skip to content

Commit 6575057

Browse files
Replace travis-ci with github actions
1 parent 7372659 commit 6575057

File tree

2 files changed

+35
-21
lines changed

2 files changed

+35
-21
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: build
2+
on: [push]
3+
jobs:
4+
build:
5+
name: ${{ matrix.name }}
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
include:
10+
- name: "Windows"
11+
os: windows-latest
12+
- name: "Ubuntu"
13+
os: ubuntu-latest
14+
- name: "macOS"
15+
os: macos-latest
16+
fail-fast: false
17+
steps:
18+
- name: Build
19+
run: cargo build
20+
shell: bash
21+
- name: Run tests
22+
run: cargo test
23+
shell: bash
24+
- name: Build with CMake
25+
run: |
26+
mkdir cmake_build
27+
cd cmake_build
28+
cmake .. -DCMAKE_BUILD_TYPE=Release
29+
cmake --build . --config Release --parallel
30+
shell: bash
31+
- name: Test with CMake
32+
run: |
33+
cd cmake_build
34+
ctest . -C Release --jobs 6
35+
shell: bash

.travis.yml

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

0 commit comments

Comments
 (0)