Skip to content

Commit 3dd879d

Browse files
committed
Add github actions
1 parent e019078 commit 3dd879d

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

.github/workflows/ubuntu.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Ubuntu-amd64
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: cmake build
12+
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
13+
- name: cmake make
14+
run: cmake --build build --parallel 3
15+
- name: test
16+
run: |
17+
cd build/test
18+
./popl_test

.github/workflows/windows.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Windows-win64
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: windows-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: cmake build
12+
run: cmake -S . -B build
13+
- name: cmake make
14+
run: cmake --build build --parallel 3
15+
- name: test
16+
run: |
17+
cd D:\a\popl\popl\build\test
18+
dir
19+
pwd
20+
.\Debug\popl_test.exe

test/test_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ TEST_CASE("command line")
2323

2424
try
2525
{
26-
op.parse(args.size(), args.data());
26+
op.parse(static_cast<int>(args.size()), args.data());
2727
REQUIRE(help_option->count() == 1);
2828
REQUIRE(int_option->is_set() == false);
2929
REQUIRE(int_option->count() == 0);

0 commit comments

Comments
 (0)