2024-07-13 16:38:28 +03:00
|
|
|
name: Build Example
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-07-14 13:59:24 +03:00
|
|
|
runs-on: ubuntu-latest
|
2024-07-14 14:06:08 +03:00
|
|
|
#image: stateoftheartio/qt6:6.6-mingw-aqt
|
2024-07-13 16:38:28 +03:00
|
|
|
name: Build
|
|
|
|
steps:
|
2024-07-15 19:21:18 +03:00
|
|
|
|
2024-07-15 19:03:51 +03:00
|
|
|
- name: Apt update
|
|
|
|
run: sudo apt update
|
2024-07-15 19:21:18 +03:00
|
|
|
|
2024-07-15 19:03:51 +03:00
|
|
|
- name: Install qmake6 Using
|
2024-07-26 17:41:39 +03:00
|
|
|
run: sudo apt -y install qmake6 qt6-base-dev qt6-declarative-dev
|
2024-07-15 20:31:49 +03:00
|
|
|
|
2024-07-19 12:44:03 +03:00
|
|
|
- name: Change directory
|
2024-07-26 17:37:43 +03:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cd /root/.cache/act/mstanaev/
|
|
|
|
echo "Current dir: $PWD"
|
2024-07-19 16:34:19 +03:00
|
|
|
|
|
|
|
- name: Get all tags for correct version determination
|
|
|
|
working-directory: ${{ env.SOURCE_DIR }}
|
2024-07-19 16:50:51 +03:00
|
|
|
run: |
|
2024-07-26 17:37:43 +03:00
|
|
|
git clone https://git.gtlab.pro/mstanaev/test_sdk.git
|
|
|
|
cd test_sdk/core
|
2024-07-19 16:49:58 +03:00
|
|
|
|
|
|
|
|
2024-07-19 16:34:19 +03:00
|
|
|
|
2024-07-19 16:49:58 +03:00
|
|
|
|
2024-07-19 12:44:03 +03:00
|
|
|
# - name: locate
|
|
|
|
# run: sudo apt install locate
|
2024-07-15 20:53:36 +03:00
|
|
|
|
2024-07-19 12:44:03 +03:00
|
|
|
# - name: updatedb
|
|
|
|
# run: sudo updatedb
|
2024-07-15 20:53:36 +03:00
|
|
|
|
2024-07-19 12:44:03 +03:00
|
|
|
# - name: locate core.pro
|
|
|
|
# run: sudo locate core.pro
|
2024-07-15 20:49:39 +03:00
|
|
|
# - name: Generate qt6.conf based on the path to qmake6
|
|
|
|
# run: qtchooser -install qt6 $(which qmake6)
|
2024-07-15 20:31:49 +03:00
|
|
|
|
2024-07-15 20:39:43 +03:00
|
|
|
# - name: Move qt6.conf to system-wide dir
|
|
|
|
# run: sudo mv ~/.config/qtchooser/qt6.conf /usr/share/qtchooser/qt6.conf
|
2024-07-15 20:31:49 +03:00
|
|
|
|
2024-07-15 20:39:43 +03:00
|
|
|
# - name: Set Qt6 as default option 1
|
|
|
|
# run: sudo mkdir -p /usr/lib/$(uname -p)-linux-gnu/qt-default/qtchooser
|
2024-07-15 20:31:49 +03:00
|
|
|
|
2024-07-15 20:39:43 +03:00
|
|
|
# - name: Set Qt6 as default option 2
|
|
|
|
# run: sudo ln -n /usr/share/qtchooser/qt6.conf /usr/lib/$(uname -p)-linux-gnu/qt-default/qtchooser/default.conf
|
2024-07-15 20:31:49 +03:00
|
|
|
|
2024-07-15 20:41:32 +03:00
|
|
|
# - name: Generate qt6.conf based on path to qmake6
|
|
|
|
# run: qtchooser -install qt6 $(which qmake6)
|
2024-07-15 20:31:49 +03:00
|
|
|
|
2024-07-15 20:41:32 +03:00
|
|
|
# - name: Select Qt6 as default (place in ~/.bashrc for persistence)
|
|
|
|
# run: export QT_SELECT=qt6
|
2024-07-15 19:21:18 +03:00
|
|
|
|
2024-07-26 18:02:41 +03:00
|
|
|
- name: Start qmake and make
|
|
|
|
run: |
|
|
|
|
qmake6 core.pro
|
|
|
|
cmake --install .
|
2024-07-15 19:21:18 +03:00
|
|
|
|
|
|
|
|
2024-07-15 19:03:51 +03:00
|
|
|
#- name: Docker container run
|
|
|
|
# run:
|
|
|
|
# runs:
|