Qt-Advanced-Docking-System/.github/workflows/linux-builds.yml

59 lines
1.3 KiB
YAML
Raw Normal View History

ilds
2019-11-30 05:29:49 +08:00
on: [push]
jobs:
build:
2019-12-02 15:19:11 +08:00
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-18.04]
2019-11-30 05:29:49 +08:00
2019-12-02 15:19:11 +08:00
runs-on: ${{ matrix.os }}
2019-11-30 05:29:49 +08:00
steps:
- uses: actions/checkout@v1
2019-11-30 05:44:07 +08:00
- name: install qt
2019-12-02 15:10:23 +08:00
run: |
2019-12-02 15:11:49 +08:00
sudo apt-get update --fix-missing
2019-12-02 15:10:58 +08:00
sudo apt-get install qt5-default
sudo apt-get install qtbase5-private-dev
2019-11-30 05:39:07 +08:00
- name: qmake
run: qmake
2019-11-30 05:29:49 +08:00
- name: make
2019-11-30 06:04:35 +08:00
run: make -j4
build_ubuntu_2204:
runs-on: ubuntu-22.04
steps:
2023-02-10 21:11:38 +08:00
- uses: actions/checkout@v2
- name: Cache Qt
id: cache-qt-6-4
uses: actions/cache@v1 # not v2!
with:
path: ../Qt/6.4.2
key: ${{ runner.os }}-QtCache-Qt6-4
2023-02-10 20:58:03 +08:00
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '6.4.2'
host: 'linux'
target: 'desktop'
2023-02-10 21:11:38 +08:00
install-deps: true
cached: ${{ steps.cache-qt-6-4.outputs.cache-hit }}
setup-python: true
2023-02-10 21:11:38 +08:00
tools: ''
tools-only: false
- name: Install needed xkbcommon symlink
run: sudo apt-get install libxkbcommon-dev -y
- name: Ubuntu and Qt version
run: |
cat /etc/issue
echo number of processors: $(nproc)
qmake -v
- name: qmake
run: qmake
- name: make
run: make -j$(nproc)