Skip to content

FIX - Missing icon inside NuGet package readme file. (#9) #132

FIX - Missing icon inside NuGet package readme file. (#9)

FIX - Missing icon inside NuGet package readme file. (#9) #132

Workflow file for this run

name: Push Build
on:
push:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout with submodules
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: recursive
clean: true
- uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ secrets.nuget_apikey }}
nuget-version: '5.x'
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
toolset: 16.0
- name: Show Tools
run: |
cmake --version
- name: Build
run: |
cmake -DwxBUILD_SHARED=ON -DwxUSE_STL=ON -DwxUSE_GUI=1 -DwxBUILD_PRECOMP=ON -DwxUSE_UNICODE=ON -DwxBUILD_MONOLITHIC=ON -DwxBUILD_VENDOR= -DwxBUILD_CXX_STANDARD=17 -A Win32 -B build32
cmake -DwxBUILD_SHARED=ON -DwxUSE_STL=ON -DwxUSE_GUI=1 -DwxBUILD_PRECOMP=ON -DwxUSE_UNICODE=ON -DwxBUILD_MONOLITHIC=ON -DwxBUILD_VENDOR= -DwxBUILD_CXX_STANDARD=17 -A x64 -B build64
cmake --build build32 --config Debug
cmake --build build32 --config Release
cmake --build build64 --config Debug
cmake --build build64 --config Release
- name: 'Tools'
run: |
mkdir static
cd static
cmake .. -DwxBUILD_SHARED=OFF -DwxUSE_STL=ON -DwxUSE_GUI=ON -DwxBUILD_PRECOMP=ON -DwxUSE_UNICODE=ON -DwxBUILD_MONOLITHIC=ON -DwxBUILD_VENDOR= -DwxBUILD_CXX_STANDARD=17
cmake --build . --config Release
- name: extract tag name
if: startswith(github.ref, 'refs/tags/')
uses: olegtarasov/[email protected]
id: tagname
with:
tagregex: "([0-9\\.]+.*)"
tagregexgroup: 1
- name: Build Nuget Package - Prerelease
if: "!startswith(github.ref, 'refs/tags/')"
run: nuget pack bundle\nuget\wxWidgets.nuspec -OutputFileNamesWithoutVersion -properties version=1.0.0-prerelease -OutputDirectory dist\ -properties repository=${{github.repository}} -BasePath .
- name: Upload Artifacts
if: "!startswith(github.ref, 'refs/tags/')"
uses: actions/upload-artifact@v2
with:
name: nuget
path: dist/*.nupkg
- name: Build and Push Nuget Package - Release
if: startswith(github.ref, 'refs/tags/')
run: |
nuget pack bundle\nuget\wxWidgets.nuspec -OutputFileNamesWithoutVersion -properties version=${{env.git_tag_name}} -OutputDirectory dist\ -properties repository=${{github.repository}} -properties commit=${{ github.sha }} -BasePath .
nuget push dist\*.nupkg -NoSymbols -source https://api.nuget.org/v3/index.json -apikey ${{ secrets.nuget_apikey }}