Update linux.yml #14
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: Build DXUI-Installer | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential libgl1-mesa-dev python3-pip | |
pip3 install aqtinstall | |
- name: Get latest Qt version | |
id: get_latest_qt | |
run: | | |
LATEST_QT_VERSION=$(aqt list-qt linux desktop | tail -n 1) | |
echo "LATEST_QT_VERSION=$LATEST_QT_VERSION" >> $GITHUB_ENV | |
- name: Install latest Qt | |
run: | | |
aqt install $LATEST_QT_VERSION linux desktop -m qtbase qttools qtdeclarative qtmultimedia qtconnectivity qtquickcontrols2 qtimageformats qtsvg qtserialport qttranslations qtlocation qtwebchannel qtwebengine qtwebsockets qtwebview qt3d qtcharts qtdatavis3d qtvirtualkeyboard qtquick3d qtquicktimeline qtquickcontrols2 qtscxml qtnetworkauth qtremoteobjects qtpositioning qtsensors qtwebview | |
echo "export PATH=$GITHUB_WORKSPACE/$LATEST_QT_VERSION/gcc_64/bin:$PATH" >> $GITHUB_ENV | |
- name: Build DXUI-Installer | |
run: | | |
qmake Installer.pro | |
make | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: DXUI-Installer | |
path: DXUI-Installer |