Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
omergoktas committed Nov 20, 2024
1 parent 23ba08c commit 3bb7105
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Automated Builds

env:
QT_VERSION: '6.7.3'

on:
push:
branches: [ "master" ]
Expand All @@ -10,7 +13,7 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: Download source codes
Expand All @@ -19,19 +22,23 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y build-essential patchelf libfuse2
sudo apt-get install -y build-essential ninja-build patchelf libfuse2
pip install aqtinstall
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.5.0'
cache: 'true'
install-deps: 'false'
run: |
python3 -m aqt install-qt linux desktop $QT_VERSION linux_gcc_64 -O /tmp/qt -m $QT_MODULES
python3 -m aqt install-qt linux_arm64 desktop $QT_VERSION linux_gcc_arm64 -O /tmp/qt -m $QT_MODULES
- name: Build the project
- name: Build for amd64
run: |
cmake -S . -B build
cmake --build build --parallel --config Release
chmod +x /tmp/qt/$QT_VERSION/gcc_64/bin/qt-cmake
/tmp/qt/$QT_VERSION/gcc_64/bin/qt-cmake \
-S . \
-B build-amd64 \
-G Ninja \
-D CMAKE_BUILD_TYPE=Release
cmake --build build-amd64 --parallel --config Release
- name: Publish build artifacts
uses: marvinpinto/action-automatic-releases@latest
Expand Down

0 comments on commit 3bb7105

Please sign in to comment.