Update c-cpp.yml #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C++ Qt6 CI | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Qt | ||
# You may pin to the exact commit or the version. | ||
# uses: jurplel/install-qt-action@f03f05556819ceb3781ee2f455ec44c339d683c0 | ||
uses: jurplel/[email protected] | ||
with: | ||
# Directory to install Qt | ||
dir: # optional | ||
# Version of Qt to install | ||
version: # optional, default is 5.15.2 | ||
# Host platform | ||
host: # optional | ||
# Target platform for build | ||
target: # optional, default is desktop | ||
# Architecture for Windows/Android | ||
arch: # optional | ||
# Whether or not to install Qt dependencies on Linux | ||
install-deps: # optional, default is true | ||
# Additional Qt modules to install | ||
modules: # optional | ||
# Specify which Qt archive to install | ||
archives: # optional | ||
# Whether or not to cache Qt automatically | ||
cache: # optional | ||
# Cache key prefix for automatic cache | ||
cache-key-prefix: # optional, default is install-qt-action | ||
# Whether or not to automatically run setup-python to find a valid python version. | ||
setup-python: # optional, default is true | ||
# Qt tools to download -- specify comma-separated argument lists which are themselves separated by spaces: <tool_name>,<tool_version>,<tool_arch> | ||
tools: # optional | ||
# When true, prepends directories of tools to PATH environment variable. | ||
add-tools-to-path: # optional, default is true | ||
# Whether or not to set environment variables after running aqtinstall | ||
set-env: # optional, default is true | ||
# Turns off installation of Qt. Useful for installing tools, source, documentation, or examples. | ||
no-qt-binaries: # optional | ||
# Synonym for `no-qt-binaries`, used for backwards compatibility. | ||
tools-only: # optional | ||
# Location to source aqtinstall from in case of issues | ||
aqtsource: # optional | ||
# Version of aqtinstall to use in case of issues | ||
aqtversion: # optional, default is ==3.1.* | ||
# Version of py7zr to use in case of issues | ||
py7zrversion: # optional, default is ==0.20.* | ||
# Any extra arguments to append to the back | ||
extra: # optional | ||
# Whether or not to install Qt source code. | ||
source: # optional | ||
# Space-separated list of .7z source archives to install. Used to reduce download/image sizes. | ||
src-archives: # optional | ||
# Whether or not to install Qt documentation. | ||
documentation: # optional | ||
# Space-separated list of .7z docs archives to install. Used to reduce download/image sizes. | ||
doc-archives: # optional | ||
# Space-separated list of additional documentation modules to install. | ||
doc-modules: # optional | ||
# Whether or not to install Qt example code. | ||
examples: # optional | ||
# Space-separated list of .7z example archives to install. Used to reduce download/image sizes. | ||
example-archives: # optional | ||
# Space-separated list of additional example modules to install. | ||
example-modules: # optional | ||
- name: Set up Build Environment | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential | ||
- name: Build Project | ||
run: | | ||
qmake | ||
make |