Also build debug version in CI
MODIFY
.github/workflows/linux-release.yml
.github/workflows/linux-release.yml
@@ -11,7 +11,17 @@ jobs:
CC: gcc-9
CXX: g++-9
+ strategy:
+ matrix:
+ build-type: [Release, Debug]
+
steps:
+
+ - name: Job info
+ run: |
+ echo "GitHub Ref: ${{ github.ref }}"
+ echo "Event: ${{ github.event }}"
+
- name: get container ready for build
run: |
sudo apt-get update
@@ -49,7 +59,7 @@ jobs:
run: |
echo "--------------------------------------------------------------"
echo "building desktop"
- cmake -DCMAKE_BUILD_TYPE=Release .
+ cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} .
make -j $(nproc)
- name: package artifacts
@@ -66,12 +76,12 @@ jobs:
- uses: actions/upload-artifact@v2
with:
- name: Executable
+ name: ${{ matrix.build-type }}_executable
path: Ripes*.AppImage*
- name: continuous release
uses: softprops/action-gh-release@v1
- if: github.ref == 'refs/heads/master'
+ if: github.ref == 'refs/heads/master' && matrix.build-type == 'Release'
with:
prerelease: true
files: Ripes*.AppImage*
@@ -79,9 +89,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- - name: tagged release
+ - if: (startsWith(github.ref, 'refs/tags/')) && (matrix.build-type == 'Release')
+ name: tagged release
uses: softprops/action-gh-release@v1
- if: (github.ref == 'refs/heads/master') && (startsWith(github.ref, 'refs/tags/'))
with:
files: Ripes*.AppImage*
env:

MODIFY
.github/workflows/mac-release.yml
.github/workflows/mac-release.yml
@@ -7,6 +7,11 @@ on:
jobs:
buildMac:
runs-on: macOS-latest
+
+ strategy:
+ matrix:
+ build-type: [Release, Debug]
+
steps:
- name: checkout sources
uses: actions/checkout@v2
@@ -38,27 +43,26 @@ jobs:
export PATH=$QT_ROOT/bin:$PATH
export CMAKE_PREFIX_PATH=$QT_ROOT/lib/cmake
DIR=$(pwd)
- cmake -DCMAKE_BUILD_TYPE=Release .
+ cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} .
make
- name: package artifacts
run: |
- macdeployqt Ripes.app
+ macdeployqt $(if [ ${{ matrix.build-type }} -eq Debug ]; then echo "-use-debug-libs"; fi) Ripes.app
source .github/workflows/scripts/set_version.sh
export APPNAME=Ripes-${RIPES_VERSION}-mac-x86_64
echo "APPNAME=${APPNAME}" >> $GITHUB_ENV
sudo mv Ripes.app ${APPNAME}.app
sudo zip -r ${APPNAME}.zip ${APPNAME}.app/
-
- uses: actions/upload-artifact@v2
with:
- name: Executable
+ name: ${{ matrix.build-type }}_executable
path: ${{ env.APPNAME }}.zip
- name: continuous release
uses: softprops/action-gh-release@v1
- if: github.ref == 'refs/heads/master'
+ if: github.ref == 'refs/heads/master' && matrix.build-type == 'Release'
with:
prerelease: true
files: ${{ env.APPNAME }}.zip
@@ -66,9 +70,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- - name: tagged release
+ - if: (startsWith(github.ref, 'refs/tags/')) && (matrix.build-type == 'Release')
+ name: tagged release
uses: softprops/action-gh-release@v1
- if: (github.ref == 'refs/heads/master') && (startsWith(github.ref, 'refs/tags/'))
with:
files: ${{ env.APPNAME }}.zip
env:

MODIFY
.github/workflows/release_setup.yml
.github/workflows/release_setup.yml
@@ -9,6 +9,7 @@ jobs:
release-setup:
runs-on: ubuntu-latest
steps:
+
- uses: "marvinpinto/action-automatic-releases@latest"
if: github.ref == 'refs/heads/master'
with:

MODIFY
.github/workflows/windows-release.yml
.github/workflows/windows-release.yml
@@ -8,6 +8,10 @@ jobs:
buildWindows:
runs-on: windows-latest
+ strategy:
+ matrix:
+ build-type: [Release, Debug]
+
steps:
- name: get container ready for build
uses: ilammy/msvc-dev-cmd@v1
@@ -37,7 +41,7 @@ jobs:
- name: build Ripes
shell: bash
run: |
- cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl
+ cmake -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl
cmake --build .
- name: package artifacts
@@ -49,17 +53,19 @@ jobs:
mkdir packageDir
pushd packageDir
mv ../Ripes.exe .
- windeployqt.exe -svg --release --no-compiler-runtime --no-opengl-sw --no-translations Ripes.exe
+ # Translate ie. "Release" -> "release"
+ windeployqt.exe -svg --$(echo "${{ matrix.build-type }}" | tr '[:upper:]' '[:lower:]') \
+ --no-compiler-runtime --no-opengl-sw --no-translations Ripes.exe
7z a -r ../${APPNAME} *
- uses: actions/upload-artifact@v2
with:
- name: Executable
+ name: ${{ matrix.build-type }}_executable
path: ${{ env.APPNAME }}
- name: continuous release
uses: softprops/action-gh-release@v1
- if: github.ref == 'refs/heads/master'
+ if: github.ref == 'refs/heads/master' && matrix.build-type == 'Release'
with:
prerelease: true
files: ${{ env.APPNAME }}
@@ -67,9 +73,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- - name: tagged release
+ - if: (startsWith(github.ref, 'refs/tags/')) && (matrix.build-type == 'Release')
+ name: tagged release
uses: softprops/action-gh-release@v1
- if: (github.ref == 'refs/heads/master') && (startsWith(github.ref, 'refs/tags/'))
with:
files: ${{ env.APPNAME }}
env:

Also build debug version in CI