Skip to content

Commit fc2981f

Browse files
committed
- github action as starting point
- update NuGet.CommandLine.2.8.3 -> NuGet.CommandLine.2.8.6 - add initial appveyor.yml CI config
1 parent 6cb9137 commit fc2981f

File tree

7 files changed

+155
-10
lines changed

7 files changed

+155
-10
lines changed

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "nuget" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"
12+
13+
# Maintain dependencies for GitHub Actions
14+
- package-ecosystem: "github-actions"
15+
directory: "/"
16+
schedule:
17+
interval: "daily"

.github/workflows/CI_build.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI_build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: windows-latest
9+
strategy:
10+
max-parallel: 6
11+
matrix:
12+
build_configuration: [Release]
13+
build_platform: [Any CPU]
14+
build_boost_version: [1_72_0]
15+
build_boost_version_dot: [1.72.0]
16+
build_msvc_version_dot: [14.2, 14.1]
17+
steps:
18+
- name: Checkout repo
19+
uses: actions/checkout@v2
20+
21+
- name: Setup Nuget.exe
22+
uses: nuget/setup-nuget@v1
23+
24+
- name: restore input nuget packages
25+
working-directory: builder\
26+
run: |
27+
nuget restore builder\packages.config -PackagesDirectory packages
28+
nuget restore builderTest\packages.config -PackagesDirectory packages
29+
30+
- name: Setup to add MSBuild.exe to path
31+
uses: microsoft/setup-msbuild@v1
32+
33+
- name: MSBuild of builder
34+
working-directory: builder\
35+
run: |
36+
msbuild builder.sln /m /verbosity:minimal /t:restore /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}"
37+
msbuild builder.sln /m /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}"
38+
39+
- name: boost download
40+
working-directory: .
41+
run: |
42+
Set-Location -Path 'D:\a'
43+
New-Item -ItemType directory -Path D:\a\boost
44+
Set-Location -Path 'D:\a\boost'
45+
(New-Object System.Net.WebClient).DownloadFile("https://dl.bintray.com/boostorg/release/${{ matrix.build_boost_version_dot }}/binaries/boost_${{ matrix.build_boost_version }}-msvc-${{ matrix.build_msvc_version_dot }}-64.exe", "D:\a\boost\boost_${{ matrix.build_boost_version }}-msvc-${{ matrix.build_msvc_version_dot }}-64.exe")
46+
(New-Object System.Net.WebClient).DownloadFile("https://dl.bintray.com/boostorg/release/${{ matrix.build_boost_version_dot }}/binaries/boost_${{ matrix.build_boost_version }}-msvc-${{ matrix.build_msvc_version_dot }}-32.exe", "D:\a\boost\boost_${{ matrix.build_boost_version }}-msvc-${{ matrix.build_msvc_version_dot }}-32.exe")
47+
.\boost_${{ matrix.build_boost_version }}-msvc-${{ matrix.build_msvc_version_dot }}-64.exe /SILENT /DIR=D:\a\boost\boost | Out-Null
48+
.\boost_${{ matrix.build_boost_version }}-msvc-${{ matrix.build_msvc_version_dot }}-32.exe /SILENT /DIR=D:\a\boost\boost | Out-Null
49+
50+
- name: run builder
51+
working-directory: builder\builder\bin\Release\
52+
run: .\builder.exe

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ builder/packages/repositories.config
4848
*.suo
4949
/log.txt
5050
/builder/packages/Framework.G1.1.0.13.0
51-
/builder/packages/NuGet.CommandLine.2.8.3
51+
/builder/packages/NuGet.CommandLine.2.8.6
5252
/builder/builderTest/bin/Debug
5353
.vs/

appveyor.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
version: 1.72.{build}
2+
3+
4+
environment:
5+
matrix:
6+
#- PlatformToolset: v141
7+
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
8+
9+
- PlatformToolset: v142
10+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
11+
BUILD_BOOST_VERSION: 1_72_0
12+
BUILD_BOOST_VERSION_DOT: 1.72.0
13+
BUILD_MSVC_VERSION_DOT: 14.2
14+
15+
configuration:
16+
- Release
17+
#- Debug
18+
19+
platform:
20+
- Any CPU
21+
22+
install:
23+
- if "%platform%"=="Any CPU" set archi=amd64
24+
- if "%platform%"=="Any CPU" set platform_input=Any CPU
25+
26+
27+
- if "%PlatformToolset%"=="v140" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi%
28+
- if "%PlatformToolset%"=="v141" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
29+
- if "%PlatformToolset%"=="v142" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
30+
31+
- cd "%APPVEYOR_BUILD_FOLDER%"\..\..
32+
- mkdir boost
33+
- cd boost
34+
# build from source, but fails due to runtime limitation as each build takes ~ 40min
35+
#- appveyor DownloadFile https://dl.bintray.com/boostorg/release/%BUILD_BOOST_VERSION_DOT%/source/boost_%BUILD_BOOST_VERSION%.7z
36+
#- boost.bat
37+
# complete zip, but fails due to storage limitations on appveyor (bintray download is much faster than sourceforge)
38+
#- appveyor DownloadFile https://dl.bintray.com/boostorg/release/%BUILD_BOOST_VERSION_DOT%/binaries/boost_%BUILD_BOOST_VERSION%-bin-msvc-all-32-64.7z
39+
#- appveyor DownloadFile https://sourceforge.net/projects/boost/files/boost-binaries/%BUILD_BOOST_VERSION_DOT%/boost_%BUILD_BOOST_VERSION%-bin-msvc-all-32-64.7z
40+
#- 7z x -y boost_%BUILD_BOOST_VERSION%-bin-msvc-all-32-64.7z > nul
41+
#- rename boost_%BUILD_BOOST_VERSION%-bin-msvc-all-32-64 boost
42+
- appveyor DownloadFile https://dl.bintray.com/boostorg/release/%BUILD_BOOST_VERSION_DOT%/binaries/boost_%BUILD_BOOST_VERSION%-msvc-%BUILD_MSVC_VERSION_DOT%-32.exe
43+
- appveyor DownloadFile https://dl.bintray.com/boostorg/release/%BUILD_BOOST_VERSION_DOT%/binaries/boost_%BUILD_BOOST_VERSION%-msvc-%BUILD_MSVC_VERSION_DOT%-64.exe
44+
- boost_%BUILD_BOOST_VERSION%-msvc-%BUILD_MSVC_VERSION_DOT%-64.exe /SILENT /DIR=C:\boost\boost
45+
- boost_%BUILD_BOOST_VERSION%-msvc-%BUILD_MSVC_VERSION_DOT%-32.exe /SILENT /DIR=C:\boost\boost
46+
47+
- nuget restore "%APPVEYOR_BUILD_FOLDER%"\builder\builder\packages.config -PackagesDirectory "%APPVEYOR_BUILD_FOLDER%"\builder\packages
48+
- nuget restore "%APPVEYOR_BUILD_FOLDER%"\builder\builderTest\packages.config -PackagesDirectory "%APPVEYOR_BUILD_FOLDER%"\builder\packages
49+
50+
51+
build_script:
52+
- cd "%APPVEYOR_BUILD_FOLDER%"\builder
53+
- msbuild builder.sln /m /verbosity:minimal /t:restore /p:configuration="%configuration%" /p:platform="%platform_input%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
54+
- msbuild builder.sln /m /verbosity:minimal /p:configuration="%configuration%" /p:platform="%platform_input%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
55+
- cd "%APPVEYOR_BUILD_FOLDER%"
56+
57+
after_build:
58+
- cd "%APPVEYOR_BUILD_FOLDER%"\builder\builder\bin\Release\
59+
- call builder.exe
60+
61+
artifacts:
62+
#- path: installer\build\**\*.*
63+
# name: releases
64+
65+
deploy:
66+
provider: GitHub
67+
auth_token:
68+
secure: #!TODO!
69+
artifact: releases
70+
draft: false
71+
prerelease: false
72+
force_update: true
73+
on:
74+
appveyor_repo_tag: true
75+
PlatformToolset: v142
76+
configuration: Release

boost.bat

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ cd ..\boost\
33

44
call bootstrap.bat
55

6-
b2 headers
6+
b2 -j%NUMBER_OF_PROCESSORS% headers
77

88
rem add 'call :link XX.X' if you need to run for specific version of Visual C++ compiler.
99

1010
call :link 14.0
11-
call :link 12.0
12-
call :link 11.0
13-
call :link 10.0
14-
call :link 9.0
11+
rem call :link 12.0
12+
rem call :link 11.0
13+
rem call :link 10.0
14+
rem call :link 9.0
1515

1616
goto :eof
1717

@@ -41,7 +41,7 @@ echo link=%2
4141
echo runtime-link=%3
4242
echo threading=%4
4343
echo }
44-
call :build %1 %2 %3 %4 32
44+
rem call :build %1 %2 %3 %4 32
4545
call :build %1 %2 %3 %4 64
4646
goto :eof
4747

@@ -54,5 +54,5 @@ echo threading=%4
5454
echo address-model=%5
5555
echo }
5656
rem change this line if you need to specify additional options to compiler.
57-
b2 architecture=x86 link=%2 runtime-link=%3 threading=%4 address-model=%5 stage --stagedir=address-model-%5 --toolset=msvc-%1 --without-python
57+
b2 -j%NUMBER_OF_PROCESSORS% architecture=x86 link=%2 runtime-link=%3 threading=%4 address-model=%5 stage --stagedir=address-model-%5 --toolset=msvc-%1 --without-python
5858
goto :eof

builder/builder/Nuspec.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private static void CreateNuspec(
8484
nuspec.CreateDocument().Save(nuspecFile);
8585
Process.Start(
8686
new ProcessStartInfo(
87-
@"..\..\..\packages\NuGet.CommandLine.2.8.3\tools\nuget.exe",
87+
@"..\..\..\packages\NuGet.CommandLine.2.8.6\tools\nuget.exe",
8888
"pack " + nuspecFile)
8989
{
9090
UseShellExecute = false,

builder/builder/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Framework.G1" version="1.0.13.0" targetFramework="net45" userInstalled="true" />
4-
<package id="NuGet.CommandLine" version="2.8.3" targetFramework="net45" userInstalled="true" />
4+
<package id="NuGet.CommandLine" version="2.8.6" targetFramework="net45" userInstalled="true" />
55
</packages>

0 commit comments

Comments
 (0)