From 0d78195e4efa46b08d52fb698a564fe2c399e09d Mon Sep 17 00:00:00 2001 From: youmetme <321640253@qq.com> Date: Sat, 2 Nov 2024 12:34:15 +0800 Subject: [PATCH] test action --- .github/workflows/linux_test.yml | 17 +++++++++++++++++ test.sh | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/linux_test.yml 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