Skip to content

Add x86 build, make RenPy work without installed Python #42

Add x86 build, make RenPy work without installed Python

Add x86 build, make RenPy work without installed Python #42

Workflow file for this run

name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# https://devblogs.microsoft.com/cppblog/vcpkg-integration-with-the-github-dependency-graph/
permissions:
contents: write
actions: read
security-events: write
env:
# https://devblogs.microsoft.com/cppblog/vcpkg-integration-with-the-github-dependency-graph/
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
VCPKG_DEFAULT_BINARY_CACHE: "C:/vcpkg-binary-cache"
VCPKG_FEATURE_FLAGS: dependencygraph
jobs:
build:
runs-on: windows-2022
strategy:
matrix:
preset: [x64-release, x86-release]
steps:
- uses: actions/checkout@v4
- name: Setup Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
- name: Get project vcpkg baseline
shell: pwsh
run: |
$baseline = (Get-Content -Path vcpkg.json | ConvertFrom-Json).'builtin-baseline'
echo "VCPKG_BASELINE=$baseline" >> $env:GITHUB_ENV
- name: Cache vcpkg
uses: actions/cache@v4
with:
key: vcpkg-${{ matrix.preset }}-${{ hashFiles('vcpkg.json') }}
path: |
${{env.VCPKG_DEFAULT_BINARY_CACHE}}
- name: Setup vcpkg
run: |
New-Item -ItemType Directory -Path C:/my-vcpkg
Set-Location -Path C:/my-vcpkg
git init
git remote add --no-tags origin https://github.com/microsoft/vcpkg.git
git fetch --depth 1 --no-write-fetch-head origin ${{env.VCPKG_BASELINE}}
git branch master ${{env.VCPKG_BASELINE}}
git checkout
./bootstrap-vcpkg.bat
New-Item -ItemType Directory -Path ${{env.VCPKG_DEFAULT_BINARY_CACHE}} -Force
echo "VCPKG_ROOT=C:/my-vcpkg" >> $env:GITHUB_ENV
- name: Configure CMake
run: cmake --preset ${{ matrix.preset }}
- name: Build
run: cmake --build --preset ${{ matrix.preset }}
# - name: Pack
# run: |
# cd ${{github.workspace}}/build/${{ matrix.preset }}
# cpack --config CPackConfig.cmake -C RelWithDebInfo
#
# - name: Release nightly build
# uses: andelf/nightly-release@main
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
# with:
# name: 'Nightly Release $$'
# body: 'This is an automated nightly build. Download the *-dll.zip files if you need Observer modules. Download the *-pdb.zip files if you need debug symbols.'
# tag_name: nightly
# prerelease: false
# files: |
# ./build/*.zip