Skip to content

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

Add x86 build, make RenPy work without installed Python

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

Workflow file for this run

name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
VCPKG_DEFAULT_BINARY_CACHE: "C:/vcpkg-binary-cache"
jobs:
build:
runs-on: windows-2022
strategy:
matrix:
arch: [x64, x86]
steps:
- uses: actions/checkout@v4
- name: Setup Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- 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.arch }}-${{ 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.arch }}-release
- name: Build
run: cmake --build --preset ${{ matrix.arch }}-release
# - name: Pack
# run: |
# cd ${{github.workspace}}/build/${{ matrix.arch }}-release
# 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