count -> contains #4694
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Windows build" | |
on: | |
push: | |
branches: [ 'master', 'weekly-test-builds' ] | |
paths-ignore: | |
- 'msvc*/**' | |
- 'check/**' | |
- 'doc/**' | |
- 'packaging/**' | |
- 'snap/**' | |
- '*.md' | |
- 'check/**' | |
- 'default/**' | |
- 'test-scripting/**' | |
pull_request: | |
branches: [ 'master' ] | |
types: ['opened', 'reopened', 'synchronize'] | |
paths-ignore: | |
- 'msvc*/**' | |
- 'check/**' | |
- 'doc/**' | |
- 'packaging/**' | |
- 'snap/**' | |
- '*.md' | |
- 'check/**' | |
- 'default/**' | |
- 'test-scripting/**' | |
jobs: | |
build-windows-2022-cmake: | |
name: MSVS 2022 on Windows CMake | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Build with CMake 2022 | |
uses: ./.github/actions/cmake-build | |
with: | |
mvc: '2022' | |
generator-name: 'Visual Studio 17 2022' | |
toolset-spec: 'v143' | |
- name: Decrypt deploy SSH key | |
if: github.ref == 'refs/heads/weekly-test-builds' && github.event_name == 'push' | |
run: bash .github/pre-deploy.sh | |
env: | |
DEPLOY_SSH_PASSWORD: ${{ secrets.DEPLOY_SSH_PASSWORD }} | |
- name: Generate binaries only | |
run: | | |
pushd build | |
cpack -V -C Release -G ZIP -D CPACK_ARCHIVE_COMPONENT_INSTALL=ON -D CPACK_MONOLITHIC_INSTALL=OFF -D CPACK_COMPONENTS_ALL=binaries | |
- name: Upload weekly-test binaries only | |
if: github.ref == 'refs/heads/weekly-test-builds' && github.event_name == 'push' | |
run: bash -c 'scp build/FreeOrion_*.zip o01eg@frs.sourceforge.net:/home/frs/project/freeorion/FreeOrion/Test/' | |
- name: Upload binaries artefacts | |
if: github.ref == 'refs/heads/master' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: freeorion-binaries-win32-build-${{ github.run_number }} | |
path: build/FreeOrion_*.zip | |
retention-days: 7 |