Fixed enchantment size not being taken into account for weight #5
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: Build | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
env: | |
BUILD_TYPE: Release | |
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg-cache | |
VCPKG_ROOT: C:\vcpkg | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup vcpkg | |
run: | | |
mkdir -p ${{ env.VCPKG_DEFAULT_BINARY_CACHE }} | |
cd $env:VCPKG_INSTALLATION_ROOT | |
./bootstrap-vcpkg.bat | |
./vcpkg --version > ${{ github.workspace }}/vcpkg-version.txt | |
- name: Cache vcpkg | |
uses: actions/cache@v4 | |
id: vcpkg-cache | |
env: | |
cache-name: vcpkg-cache | |
with: | |
path: ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}/* | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('main/**/vcpkg.json', 'vcpkg-version.txt') }} | |
- name: Configure CMake | |
run: | | |
cmake --preset vs2022-windows-vcpkg-release -Wno-deprecated | |
- name: Build | |
run: | | |
cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} | |
- name: Install | |
run: | | |
cmake --install ${{ github.workspace }}/build --component "components" --config ${{ env.BUILD_TYPE }} --prefix ${{ github.workspace }}/ReleaseBuild | |
cmake --install ${{ github.workspace }}/build --component "SKSEPlugin" --config ${{ env.BUILD_TYPE }} --prefix ${{ github.workspace }}/ReleaseBuild | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: EnchantmentArtExtender | |
path: ${{ github.workspace }}/ReleaseBuild |