Skip to content

Commit 9228a88

Browse files
committed
feat: replaced travis with gh actions
Signed-off-by: Yash Pandey (YP) <[email protected]>
1 parent 1555573 commit 9228a88

File tree

2 files changed

+59
-6
lines changed

2 files changed

+59
-6
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.

0 commit comments

Comments
 (0)