Skip to content

Main Tag CI

Main Tag CI #2

name: Main Tag CI
on:
push:
tags:
- '*'
paths:
- '.github/workflows/main_ci.yml'
- 'cmake/**'
- 'src/**'
- 'CMakeLists.txt'
- 'CMakePresets.json'
- 'vcpkg-configuration.json'
- 'vcpkg.json'
workflow_dispatch:
env:
VCPKG_COMMIT_ID: 93895b28ea7bc8cda10f156c5d336f3fc070f8b1
jobs:
build-tag-release:
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: main
submodules: recursive
- name: Setup MSVC Environment
uses: ilammy/[email protected]
- name: Setup vcpkg
uses: lukka/[email protected]
with:
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }}
- name: Build
uses: lukka/[email protected]
with:
cmakeListsTxtPath: ${{ github.workspace }}/main/CMakeLists.txt
configurePreset: 'vs2022-windows'
buildPreset: 'vs2022-windows'
buildPresetAdditionalArgs: "['--config Release']"
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10' # install the python version needed
- name: execute py script
run: python ${{ github.workspace }}/main/scripts/archive_artifacts.py --name SkyrimCharacterSheet --dll build/Release/SkyrimCharacterSheet.dll --pdb build/Release/SkyrimCharacterSheet.pdb --dir main
- uses: actions/upload-artifact@v4
with:
name: SkyrimCharacterSheet
path: ${{ github.workspace }}/artifacts/SkyrimCharacterSheet.zip
- uses: softprops/action-gh-release@v1
if: ${{startsWith(github.ref, 'refs/tags/') }}
with:
files: ${{ github.workspace }}/artifacts/SkyrimCharacterSheet.zip