Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Aug 2, 2021
1 parent edef8cf commit bda5f43
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Ubuntu-amd64

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: cmake build
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: cmake make
run: cmake --build build --parallel 3
- name: test
run: |
cd build/test
./popl_test
20 changes: 20 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Windows-win64

on: [push, pull_request]

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: cmake build
run: cmake -S . -B build
- name: cmake make
run: cmake --build build --parallel 3
- name: test
run: |
cd D:\a\popl\popl\build\test
dir
pwd
.\Debug\popl_test.exe
2 changes: 1 addition & 1 deletion test/test_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ TEST_CASE("command line")

try
{
op.parse(args.size(), args.data());
op.parse(static_cast<int>(args.size()), args.data());
REQUIRE(help_option->count() == 1);
REQUIRE(int_option->is_set() == false);
REQUIRE(int_option->count() == 0);
Expand Down

0 comments on commit bda5f43

Please sign in to comment.