-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 902 Bytes
/
Copy pathbuild.yml
File metadata and controls
41 lines (35 loc) · 902 Bytes
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
name: C++ Build CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
# 对应 Travis 的 env 矩阵
matrix:
test_dir: [
"2 - GUI and Draw simple graphics",
"3 - Draw line",
"4 - Transformation",
"5 - Camera",
"6 - Lights and Shading",
"7 - Shadowing Mapping",
"8 - Bezier Curve"
]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake libgl1-mesa-dev xorg-dev libglu1-mesa-dev libx11-dev
- name: Build
run: |
cd "${{ matrix.test_dir }}"
mkdir build
cd build
cmake ..
make