diff --git a/.github/workflows/linux_test.yml b/.github/workflows/linux_test.yml new file mode 100644 index 0000000..5ea5b3a --- /dev/null +++ b/.github/workflows/linux_test.yml @@ -0,0 +1,17 @@ + +name: test on Linux + +on: + push: + branches: ["mian"] + pull_request: + branches: ["mian"] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: checkout code + uses: actions/checkout@v4 + - name: test + run: bash ./test.sh \ No newline at end of file diff --git a/test.sh b/test.sh index 308feae..e372a43 100755 --- a/test.sh +++ b/test.sh @@ -1 +1,2 @@ -mkdir -p build && cd build && cmake .. && make && ctest \ No newline at end of file +#!/bin/bash +cmake build -B build . && cd build && make && ctest \ No newline at end of file