-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (47 loc) · 1.22 KB
/
ci.yml
File metadata and controls
58 lines (47 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
cpp-check:
name: C++ Compile Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install g++
run: sudo apt-get update && sudo apt-get install -y g++
- name: Check C++ files
run: |
chmod +x .github/scripts/check_cpp.sh
.github/scripts/check_cpp.sh
python-check:
name: Python Syntax Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Check Python files
run: |
chmod +x .github/scripts/check_python.sh
.github/scripts/check_python.sh
go-check:
name: Go Build Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Check Go files
run: |
chmod +x .github/scripts/check_go.sh
.github/scripts/check_go.sh