|
@@ -69,7 +69,7 @@ jobs:
|
|
|
conan_profile: ios-arm64
|
|
|
conan_prebuilts: dependencies-ios
|
|
|
conan_options: --options with_apple_system_libs=True
|
|
|
- - platform: msvc
|
|
|
+ - platform: msvc-x64
|
|
|
os: windows-latest
|
|
|
test: 0
|
|
|
pack: 1
|
|
@@ -77,6 +77,14 @@ jobs:
|
|
|
extension: exe
|
|
|
before_install: msvc.sh
|
|
|
preset: windows-msvc-release
|
|
|
+ - platform: msvc-x86
|
|
|
+ os: windows-latest
|
|
|
+ test: 0
|
|
|
+ pack: 1
|
|
|
+ pack_type: RelWithDebInfo
|
|
|
+ extension: exe
|
|
|
+ before_install: msvc.sh
|
|
|
+ preset: windows-msvc-release-x86
|
|
|
- platform: mingw_x86_64
|
|
|
os: ubuntu-24.04
|
|
|
test: 0
|
|
@@ -136,6 +144,10 @@ jobs:
|
|
|
if: "${{ matrix.conan_prebuilts != '' }}"
|
|
|
run: source '${{github.workspace}}/CI/install_conan_dependencies.sh' '${{matrix.conan_prebuilts}}'
|
|
|
|
|
|
+ - name: Install vcpkg Dependencies
|
|
|
+ if: ${{ startsWith(matrix.platform, 'msvc') }}
|
|
|
+ run: source '${{github.workspace}}/CI/install_vcpkg_dependencies.sh' '${{matrix.platform}}'
|
|
|
+
|
|
|
# ensure the ccache for each PR is separate so they don't interfere with each other
|
|
|
# fall back to ccache of the vcmi/vcmi repo if no PR-specific ccache is found
|
|
|
- name: ccache for PRs
|
|
@@ -232,7 +244,7 @@ jobs:
|
|
|
elif [[ (${{matrix.preset}} == android-conan-ninja-release) && (${{github.ref}} != 'refs/heads/master') ]]
|
|
|
then
|
|
|
cmake -DENABLE_CCACHE:BOOL=ON -DANDROID_GRADLE_PROPERTIES="applicationIdSuffix=.daily;signingConfig=dailySigning;applicationLabel=VCMI daily" --preset ${{ matrix.preset }}
|
|
|
- elif [[ ${{matrix.platform}} != msvc ]]
|
|
|
+ elif [[ (${{matrix.platform}} != msvc-x64) && (${{matrix.platform}} != msvc-x86) ]]
|
|
|
then
|
|
|
cmake -DENABLE_CCACHE:BOOL=ON --preset ${{ matrix.preset }}
|
|
|
else
|
|
@@ -279,6 +291,7 @@ jobs:
|
|
|
uses: actions/upload-artifact@v4
|
|
|
with:
|
|
|
name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }}
|
|
|
+ compression-level: 0
|
|
|
path: |
|
|
|
${{github.workspace}}/out/build/${{matrix.preset}}/${{ env.VCMI_PACKAGE_FILE_NAME }}.${{ matrix.extension }}
|
|
|
|
|
@@ -299,6 +312,7 @@ jobs:
|
|
|
uses: actions/upload-artifact@v4
|
|
|
with:
|
|
|
name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }}
|
|
|
+ compression-level: 0
|
|
|
path: |
|
|
|
${{ env.ANDROID_APK_PATH }}
|
|
|
|
|
@@ -307,19 +321,21 @@ jobs:
|
|
|
uses: actions/upload-artifact@v4
|
|
|
with:
|
|
|
name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }} - aab
|
|
|
+ compression-level: 0
|
|
|
path: |
|
|
|
${{ env.ANDROID_AAB_PATH }}
|
|
|
|
|
|
- name: Upload debug symbols
|
|
|
- if: ${{ matrix.platform == 'msvc' }}
|
|
|
+ if: ${{ startsWith(matrix.platform, 'msvc') }}
|
|
|
uses: actions/upload-artifact@v4
|
|
|
with:
|
|
|
name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }} - symbols
|
|
|
+ compression-level: 9
|
|
|
path: |
|
|
|
${{github.workspace}}/**/*.pdb
|
|
|
|
|
|
- name: Upload build
|
|
|
- if: ${{ (matrix.pack == 1 || startsWith(matrix.platform, 'android')) && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/features/')) && matrix.platform != 'msvc' && matrix.platform != 'mingw-32' }}
|
|
|
+ if: ${{ (matrix.pack == 1 || startsWith(matrix.platform, 'android')) && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/features/')) && matrix.platform != 'msvc-x64' && matrix.platform != 'msvc-x86' && matrix.platform != 'mingw-32' }}
|
|
|
continue-on-error: true
|
|
|
run: |
|
|
|
if [ -z '${{ env.ANDROID_APK_PATH }}' ] ; then
|