Skip to content

Update CI PPA scripts for stable branch #1049

Update CI PPA scripts for stable branch

Update CI PPA scripts for stable branch #1049

Workflow file for this run

name: "Windows build"
on:
push:
paths-ignore:
- 'msvc*/**'
- 'check/**'
- 'doc/**'
- 'packaging/**'
- 'snap/**'
- '*.md'
- 'check/**'
- 'default/**'
- 'test-scripting/**'
pull_request:
paths-ignore:
- 'msvc*/**'
- 'check/**'
- 'doc/**'
- 'packaging/**'
- 'snap/**'
- '*.md'
- 'check/**'
- 'default/**'
- 'test-scripting/**'
jobs:
build-windows-2019-cmake:
name: MSVS 2019 on Windows CMake
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Build with CMake 2019
uses: ./.github/actions/cmake-build
with:
mvc: '2019'
generator-name: 'Visual Studio 16 2019'
toolset-spec: 'v142'
- 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 [email protected]:/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
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'