From e19e3cf26b2a5ad40bd6b145f41c60e7f22259dc Mon Sep 17 00:00:00 2001 From: smilesun Date: Thu, 10 Aug 2023 10:42:50 +0200 Subject: [PATCH 1/3] add github ci to check if build works --- .github/workflows/c-cpp.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..79350f7 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,23 @@ +name: C/C++ CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: make + run: | + sudo apt-get update + sudo apt-get install cmake qt5-default qt5-qmake qtbase5-dev-tools libboost-all-dev + mkdir build + cd build + cmake .. + make From 88a2df5c4e78c93aad5037c47e70f5ba89f94feb Mon Sep 17 00:00:00 2001 From: smilesun Date: Thu, 10 Aug 2023 11:00:11 +0200 Subject: [PATCH 2/3] add qmake into workflow --- .github/workflows/c-cpp.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 79350f7..185c01c 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -21,3 +21,6 @@ jobs: cd build cmake .. make + cd .. + qmake + make From fd60596b22d9944ec83a40df7bde6fbc674e3aef Mon Sep 17 00:00:00 2001 From: smilesun Date: Thu, 10 Aug 2023 11:08:16 +0200 Subject: [PATCH 3/3] decrease ubuntu version since qt-default does not exist in latest ubuntu --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 185c01c..1538655 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -9,7 +9,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3