Skip to content

Commit d7254f2

Browse files
authored
Merge pull request #92 from EmperorYP7/EmperorYP7/github-action
feat: Replaced travis with GitHub Actions
2 parents 1555573 + 08ce172 commit d7254f2

File tree

3 files changed

+60
-7
lines changed

3 files changed

+60
-7
lines changed

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Copyright 2020 The casbin Authors. All Rights Reserved.
2+
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
16+
name: CI
17+
18+
on: [push, pull_request]
19+
20+
jobs:
21+
linux:
22+
name: "Linux Ubuntu 20.04"
23+
runs-on: ubuntu-20.04
24+
steps:
25+
- name: Checkout
26+
id: checkout
27+
uses: actions/checkout@v2
28+
- name: Building files
29+
id: building-files
30+
run: |
31+
make
32+
- name: Building library
33+
id: building-lib
34+
run: |
35+
make library
36+
- name: Cleanup
37+
id: cleanup
38+
run: |
39+
make clean
40+
41+
macos:
42+
name: "macOS Catalina 10.15"
43+
runs-on: macos-latest
44+
steps:
45+
- name: Checkout
46+
id: checkout
47+
uses: actions/checkout@v2
48+
- name: Building files
49+
id: building-files
50+
run: |
51+
make
52+
- name: Building library
53+
id: building-lib
54+
run: |
55+
make library
56+
- name: Cleanup
57+
id: cleanup
58+
run: |
59+
make clean

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Casbin-CPP
22
====
33

44
[![Build Status](https://dev.azure.com/Casbin/casbin/_apis/build/status/casbin.casbin-cpp?branchName=master)](https://dev.azure.com/Casbin/casbin/_build?definitionId=2&branchName=master)
5-
[![Build Status](https://travis-ci.org/casbin/casbin-cpp.svg?branch=master)](https://travis-ci.org/casbin/casbin-cpp)
5+
[![CI](https://github.com/casbin/casbin-cpp/actions/workflows/ci.yml/badge.svg)](https://github.com/casbin/casbin-cpp/actions/workflows/ci.yml)
66
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/casbin/casbin-cpp)](https://github.com/casbin/casbin-cpp/releases/latest)
77
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
88
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/casbin/lobby)

0 commit comments

Comments
 (0)