From e6bebe42fa278dec24929c6420ad5835f69abeeb Mon Sep 17 00:00:00 2001 From: "Wu, Ganhao" Date: Fri, 27 Mar 2020 22:24:36 +0800 Subject: [PATCH] Create nuget package and push. --- .github/workflows/build.yml | 44 +++++++++++++++++++++++++++++++++++++ fmtlib.nuspec | 19 ++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 fmtlib.nuspec diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..7a3de0cb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,44 @@ +name: Push Build + +on: + push: + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + clean: true + fetch-depth: 1 + + - name: Setup NuGet + uses: warrenbuckley/Setup-Nuget@v1 + + - name: Setup MSVC + uses: ilammy/msvc-dev-cmd@v1 + #with: + # arch: amd64 + # toolset: 16.0 + + - name: CMake + working-directory: . + run: cmake . + + - name: Build Release + working-directory: ./build + run: msbuild /m /p:Configuration=Release FMT.sln + + - name: Build Debug + working-directory: ./build + run: msbuild /m /p:Configuration=Debug FMT.sln + + - name: Nuget Pack + working-directory: . + run: nuget pack fmtlib.nuspec -version 6.1.2 -OutputFileNamesWithoutVersion -OutputDirectory dist + + - name: Nuget Push + working-directory: . + run: nuget push dist\fmtlib.nupkg \ No newline at end of file diff --git a/fmtlib.nuspec b/fmtlib.nuspec new file mode 100644 index 00000000..8872bf20 --- /dev/null +++ b/fmtlib.nuspec @@ -0,0 +1,19 @@ + + + + wuganhao.fmtlib + $version$ + {fmt} lib nuget package + Wu, Ganhao<wuganhao@hotmail.com> + Wu, Ganhao<wuganhao@hotmail.com> + false + fmtlib + Create fmtlib for VS 2019 + fmtlib std::format + + + + + + + \ No newline at end of file