diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml new file mode 100644 index 0000000..352218b --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -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 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..c2e458d --- /dev/null +++ b/.github/workflows/windows.yml @@ -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 diff --git a/test/test_main.cpp b/test/test_main.cpp index 120552c..63ae619 100644 --- a/test/test_main.cpp +++ b/test/test_main.cpp @@ -23,7 +23,7 @@ TEST_CASE("command line") try { - op.parse(args.size(), args.data()); + op.parse(static_cast(args.size()), args.data()); REQUIRE(help_option->count() == 1); REQUIRE(int_option->is_set() == false); REQUIRE(int_option->count() == 0);