From 030c2b4e8d05202d9b380a1a405c19bbb7c4f040 Mon Sep 17 00:00:00 2001 From: slashblog <31380679+slashblog@users.noreply.github.com> Date: Sun, 24 Dec 2023 18:30:22 +0530 Subject: [PATCH 1/3] Create c-cpp.yml --- .github/workflows/c-cpp.yml | 19 +++++++++++++++++++ 1 file changed, 19 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..174ab41 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,19 @@ +name: C/C++ CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: configure + run: qmake + - name: make + run: make From 4be12bb5e0866204a3ad924a0431bac8ae7cb199 Mon Sep 17 00:00:00 2001 From: slashblog <31380679+slashblog@users.noreply.github.com> Date: Sun, 24 Dec 2023 18:58:22 +0530 Subject: [PATCH 2/3] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 174ab41..08bf39d 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -1,4 +1,4 @@ -name: C/C++ CI +name: Familiar CI on: push: @@ -6,14 +6,35 @@ on: pull_request: branches: [ "main" ] +defaults: + run: + shell: bash + +env: + SOURCE_DIR: ${{ github.workspace }} + QT_VERSION: 5.15.2 + ARTIFACT: qt-planets-linux-build.AppImage + jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: configure - run: qmake - - name: make - run: make + - name: Checkout repo + uses: actions/checkout@v3 + - name: Install Qt + uses: jurplel/install-qt-action@v2 + with: + host: linux + target: desktop + arch: gcc_64 + dir: ${{ runner.temp }} + modules: qtcharts qt3d + setup-python: false + - name: Create build directory + run: mkdir ${{ env.SOURCE_DIR }}/build + - name: Configure Qmake + run: qmake + - name: make + run: make From ffbf7ec383fb0a0398ea3309cf1c5874dd51e444 Mon Sep 17 00:00:00 2001 From: slashblog <31380679+slashblog@users.noreply.github.com> Date: Sun, 24 Dec 2023 19:04:11 +0530 Subject: [PATCH 3/3] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 08bf39d..a5676c8 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -24,14 +24,10 @@ jobs: - name: Checkout repo uses: actions/checkout@v3 - name: Install Qt - uses: jurplel/install-qt-action@v2 - with: - host: linux - target: desktop - arch: gcc_64 - dir: ${{ runner.temp }} - modules: qtcharts qt3d - setup-python: false + run: > + sudo apt-get -y update && + sudo apt-get -y upgrade && + sudo apt-get -y install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools - name: Create build directory run: mkdir ${{ env.SOURCE_DIR }}/build - name: Configure Qmake