Skip to content

Commit

Permalink
#156 - updated CMakeLists.txt: changed set_version section to explici…
Browse files Browse the repository at this point in the history
…tly use Bash (by adding shell: bash) on all platforms! Bash is supported on Windows in GitHub Actions workflows - trigger [gha] [ci]
  • Loading branch information
oxy86 committed Dec 1, 2024
1 parent 196da45 commit 54618c1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
echo "🖥️ The workflow is now ready to test your code on the runner."
- name: Set version dynamically
shell: bash
id: set_version
run: |
# Check if this is a tagged commit
Expand Down Expand Up @@ -155,7 +156,7 @@ jobs:
name: Build for ${{matrix.os}} with Qt${{matrix.qt-version}}
run: |
echo '⚙️ Install dependencies'
sudo apt install desktop-file-utils
sudo apt install desktop-file-utils
echo "🔎 Check openssl version:"
echo `openssl version`
echo "🔎 Check output of 'which qmake6':"
Expand Down Expand Up @@ -195,7 +196,8 @@ jobs:
cmake --build build -- -j${{env.CORES}}
echo "🔎 Verifying built files..."
find build -type f -name "${{env.EXECUTABLE}}*"
ls -lh ./build/
find build -type f -name "${{env.UNIXNAME}}*"
echo "🔧 Installing the application into AppDir..."
cd build
Expand Down Expand Up @@ -250,6 +252,7 @@ jobs:
cmake --build build -j${{env.CORES}} --config ${{env.CMAKE_CONFIG}}
echo "👉 Building finished. Listing directory build/ for verification: "
dir build
find build -type f -name "${{env.EXECUTABLE}}*"
- if: contains( matrix.os, 'windows') && startsWith( matrix.qt-version, '6.' ) && matrix.qt-version == '6.6.3'
name: Build for ${{matrix.os}} with Qt ${{matrix.qt-version}}
run: |
Expand All @@ -263,6 +266,7 @@ jobs:
cmake --build build -j${{env.CORES}} --config ${{env.CMAKE_CONFIG}}
echo "👉 Building finished. Listing directory build/ for verification: "
dir build
find build -type f -name "${{env.EXECUTABLE}}*"
- if: contains( matrix.os, 'windows') && startsWith( matrix.qt-version, '6.' ) && matrix.qt-version == '6.8.0'
name: Build for ${{matrix.os}} with Qt ${{matrix.qt-version}}
run: |
Expand All @@ -276,4 +280,5 @@ jobs:
cmake --build build -j${{env.CORES}} --config ${{env.CMAKE_CONFIG}} -v
echo "👉 Building finished. Listing directory build/ for verification: "
dir build
find build -type f -name "${{env.EXECUTABLE}}*"
- run: echo "🍏 This job's status is ${{ job.status }}."

0 comments on commit 54618c1

Please sign in to comment.