Skip to content

Commit

Permalink
Update build-full-pri.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
celerizer authored Sep 21, 2024
1 parent 784ac62 commit 563f97a
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/build-full-pri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,22 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
qt_arch:
- gcc_64 # For Ubuntu (Linux)
- win64_msvc2019_64 # For Windows

steps:
- uses: actions/checkout@v3

# Install Qt based on the OS and architecture from the matrix
- name: Install Qt
uses: jurplel/install-qt-action@v3
# Install Qt and set the appropriate architecture based on the OS
- uses: jurplel/install-qt-action@v3
with:
arch: ${{ matrix.qt_arch }}
# Conditional selection of architecture based on OS
arch: ${{ matrix.os == 'ubuntu-latest' && 'gcc_64' || 'win64_msvc2019_64' }}
# Same Qt modules for both OS
archives: 'icu qtbase qtmultimedia qtgamepad qtsystems qtlocation qtsensors'

# Build the project using qmake and make for both platforms
# Build step
- name: Build
run: |
qmake
if [ ${{ matrix.os }} == 'ubuntu-latest' ]; then
make
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
qmake && make
else
nmake
qmake && nmake

0 comments on commit 563f97a

Please sign in to comment.