-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 749 Bytes
/
test.yaml
File metadata and controls
39 lines (32 loc) · 749 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
name: C++ CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup Windows
if: matrix.os == 'windows-latest'
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: mingw-w64-x86_64-gcc make
- name: Build on Linux
if: matrix.os == 'ubuntu-latest'
run: |
cd try1\ \(OOP\ Approach\)/tests
make
- name: Build on Windows
if: matrix.os == 'windows-latest'
shell: msys2 {0}
run: |
cd try1\ \(OOP\ Approach\)/tests
make