Skip to content

Commit fc774f1

Browse files
Adds gh action
1 parent bacf1c5 commit fc774f1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
build-windows:
12+
runs-on: windows-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: ilammy/msvc-dev-cmd@v1
16+
- name: Build on Windows
17+
run: cl main.cpp
18+
working-directory: ./src
19+
20+
build-linux:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Build on Linux
25+
run: g++ main.cpp -o main
26+
working-directory: ./src

0 commit comments

Comments
 (0)