Skip to content

Commit d3d1dac

Browse files
committed
Merge branch 'main' of https://github.com/nanoframework/CoreLibrary into generics-wip
2 parents 40ce642 + 981cb43 commit d3d1dac

File tree

18 files changed

+349
-61
lines changed

18 files changed

+349
-61
lines changed

.github/.changelog-config.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"categories": [
3+
{
4+
"title": "## New Features and enhancements",
5+
"labels": [
6+
"Type: enhancement"
7+
],
8+
"exhaustive": true
9+
},
10+
{
11+
"title": "## Bug Fixes",
12+
"labels": [
13+
"Type: bug"
14+
],
15+
"exhaustive": true
16+
},
17+
{
18+
"title": "## Documentation",
19+
"labels": [
20+
"Type: documentation"
21+
],
22+
"exhaustive": true
23+
},
24+
{
25+
"title": "## ⚠️ Breaking Changes",
26+
"labels": [
27+
"Breaking-Change"
28+
],
29+
"exhaustive": true
30+
},
31+
{
32+
"title": "## Updated dependencies",
33+
"labels": [
34+
"Type: dependencies"
35+
],
36+
"exhaustive": true
37+
}
38+
],
39+
"sort": "ASC",
40+
"template": "${{CHANGELOG}}\n\n**Full Changelog:** ${{RELEASE_DIFF}}\n\nThe following NuGet packages are available from this release:\n\n:package: [Base Class Library](https://www.nuget.org/packages/nanoFramework.CoreLibrary/)\n:package: [Base Class Library w/o reflection](https://www.nuget.org/packages/nanoFramework.CoreLibrary.NoReflection/)",
41+
"pr_template": "* ${{TITLE}} by @${{AUTHOR}} in #${{NUMBER}}",
42+
"empty_template": "- no changes",
43+
"max_tags_to_fetch": 200,
44+
"max_pull_requests": 200
45+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright (c) .NET Foundation and Contributors
2+
# See LICENSE file in the project root for full license information.
3+
4+
name: Generate Changelog
5+
run-name: Generate changelog
6+
7+
on:
8+
push:
9+
tags:
10+
- '*'
11+
12+
jobs:
13+
compose_changelog:
14+
name: nanoFramework
15+
uses: nanoframework/nf-tools/.github/workflows/generate-changelog.yml@main
16+
secrets: inherit

CHANGELOG.md

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Changelog
22

3+
## [**Changes available only in 'Preview' NuGet packages:**](https://github.com/nanoframework/CoreLibrary/tree/HEAD)
4+
5+
[Full Changelog](https://github.com/nanoframework/CoreLibrary/compare/v1.14.2...HEAD)
6+
7+
**Implemented enhancements:**
8+
9+
- Switching MathInternal.Min/Max to managed implementations [\#208](https://github.com/nanoframework/CoreLibrary/pull/208)
10+
11+
**Documentation and other chores:**
12+
13+
- Add Unit Tests for GC and strings [\#209](https://github.com/nanoframework/CoreLibrary/pull/209)
14+
- Add Unit Tests for GC [\#206](https://github.com/nanoframework/CoreLibrary/pull/206)
15+
- Add unit tests to cover typeof [\#205](https://github.com/nanoframework/CoreLibrary/pull/205)
16+
- Fixing several unit tests [\#204](https://github.com/nanoframework/CoreLibrary/pull/204)
17+
- Add tests for E format specifier [\#203](https://github.com/nanoframework/CoreLibrary/pull/203)
18+
- Update Test framework [\#202](https://github.com/nanoframework/CoreLibrary/pull/202)
19+
- Fixed typo in ToUint32 and ToUint64 description [\#201](https://github.com/nanoframework/CoreLibrary/pull/201)
20+
21+
## [v1.14.2](https://github.com/nanoframework/CoreLibrary/tree/v1.14.2) (2022-12-22)
22+
23+
[Full Changelog](https://github.com/nanoframework/CoreLibrary/compare/v1.14.1...v1.14.2)
24+
325
## [v1.14.1](https://github.com/nanoframework/CoreLibrary/tree/v1.14.1) (2022-12-22)
426

527
[Full Changelog](https://github.com/nanoframework/CoreLibrary/compare/v1.12.0...v1.14.1)
@@ -316,20 +338,20 @@
316338

317339
## [v1.9.1-preview.4](https://github.com/nanoframework/CoreLibrary/tree/v1.9.1-preview.4) (2020-10-20)
318340

319-
[Full Changelog](https://github.com/nanoframework/CoreLibrary/compare/v1.9.0-preview.11...v1.9.1-preview.4)
341+
[Full Changelog](https://github.com/nanoframework/CoreLibrary/compare/v1.9.0-alpha.11...v1.9.1-preview.4)
320342

321343
**Implemented enhancements:**
322344

323345
- Add Enum.HasFlag [\#112](https://github.com/nanoframework/CoreLibrary/pull/112)
324346
- Add Convert.ToBoolean\(byte\) [\#111](https://github.com/nanoframework/CoreLibrary/pull/111)
325347

326-
## [v1.9.0-preview.11](https://github.com/nanoframework/CoreLibrary/tree/v1.9.0-preview.11) (2020-10-20)
348+
## [v1.9.0-alpha.11](https://github.com/nanoframework/CoreLibrary/tree/v1.9.0-alpha.11) (2020-10-20)
327349

328-
[Full Changelog](https://github.com/nanoframework/CoreLibrary/compare/v1.9.0-alpha.11...v1.9.0-preview.11)
350+
[Full Changelog](https://github.com/nanoframework/CoreLibrary/compare/v1.9.0-preview.11...v1.9.0-alpha.11)
329351

330-
## [v1.9.0-alpha.11](https://github.com/nanoframework/CoreLibrary/tree/v1.9.0-alpha.11) (2020-10-20)
352+
## [v1.9.0-preview.11](https://github.com/nanoframework/CoreLibrary/tree/v1.9.0-preview.11) (2020-10-20)
331353

332-
[Full Changelog](https://github.com/nanoframework/CoreLibrary/compare/v1.9.0-preview.5...v1.9.0-alpha.11)
354+
[Full Changelog](https://github.com/nanoframework/CoreLibrary/compare/v1.9.0-preview.5...v1.9.0-preview.11)
333355

334356
## [v1.9.0-preview.5](https://github.com/nanoframework/CoreLibrary/tree/v1.9.0-preview.5) (2020-09-30)
335357

azure-pipelines.yml

Lines changed: 36 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ trigger:
99
- release-*
1010
paths:
1111
exclude:
12-
- .github_changelog_generator
1312
- .gitignore
1413
- .gitattributes
1514
- .gitmodules
@@ -19,9 +18,12 @@ trigger:
1918
- README.md
2019
- NuGet.Config
2120
- assets/*
22-
- config/*
2321
- nanoFramework.TestFramework/*
2422

23+
tags:
24+
include:
25+
- v*
26+
2527
# PR always trigger build
2628
pr:
2729
autoCancel: true
@@ -34,15 +36,25 @@ resources:
3436
name: nanoframework/nf-tools
3537
endpoint: nanoframework
3638

39+
variables:
40+
- name: DOTNET_NOLOGO
41+
value: true
42+
- name: nugetPackageName
43+
value: 'nanoFramework.CoreLibrary'
44+
3745
jobs:
3846

3947
##############################
4048
- job: Build_mscorlib
4149
condition: >-
42-
or(
43-
eq(variables['UPDATE_DEPENDENTS'], 'false'),
44-
eq(variables['StartReleaseCandidate'], 'true')
50+
and(
51+
not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v')),
52+
or(
53+
eq(variables['UPDATE_DEPENDENTS'], 'false'),
54+
eq(variables['StartReleaseCandidate'], 'true')
55+
)
4556
)
57+
4658
pool:
4759
vmImage: 'windows-latest'
4860

@@ -56,16 +68,16 @@ jobs:
5668
value: 'Release'
5769
- name: solution
5870
value: 'nanoFramework.CoreLibrary.sln'
59-
- name: nugetPackageName
60-
value: 'nanoFramework.CoreLibrary'
6171

6272
steps:
6373

74+
- template: azure-pipelines-templates/process-pr-labels.yml@templates
75+
6476
# build steps only
6577
- template: azure-pipelines-templates/class-lib-build-only.yml@templates
6678
parameters:
6779
sonarCloudProject: 'nanoframework_lib-CoreLibrary'
68-
runUnitTests: true
80+
runUnitTests: ${{ ne(variables['processPrLabels.SKIP_UNIT_TESTS'], 'true') }}
6981
unitTestRunsettings: '$(System.DefaultWorkingDirectory)\.runsettings'
7082
skipNuGetCache: true
7183

@@ -141,14 +153,11 @@ jobs:
141153
condition: >-
142154
or(
143155
and(
144-
not(or(failed(), canceled())),
145-
startsWith(variables['Build.SourceBranch'], 'refs/heads/main'),
156+
startsWith(variables['Build.SourceBranch'], 'refs/tags/v'),
146157
eq(variables['StartReleaseCandidate'], 'false')
147158
),
148159
and(
149-
not(or(failed(), canceled())),
150-
eq(variables['System.PullRequest.PullRequestId'], ''),
151-
contains(variables['Build.SourceVersionMessage'], '***UPDATE_DEPENDENTS***'),
160+
contains(variables['getCommitMessage.COMMIT_MESSAGE'], '***UPDATE_DEPENDENTS***'),
152161
eq(variables['StartReleaseCandidate'], 'false')
153162
),
154163
eq(variables['UPDATE_DEPENDENTS'], 'true')
@@ -160,28 +169,25 @@ jobs:
160169
pool:
161170
vmImage: 'windows-latest'
162171

163-
variables:
164-
DOTNET_NOLOGO: true
165-
166172
steps:
167173
# need this here in order to persist GitHub credentials
168174
- checkout: self
169175
fetchDepth: 1
170176
persistCredentials: true
171177

172178
# update dependents
179+
##########################################################################################################
180+
# dependent libraries that include unit tests should be added to the list in nanoFramework.TestFramework #
181+
##########################################################################################################
173182
- template: azure-pipelines-templates/update-dependents.yml@templates
174183
parameters:
175-
${{ if eq(variables['UPDATE_DEPENDENTS'], 'false') }}:
176-
waitBeforeUpdate: false
177-
${{ else }}:
178-
waitBeforeUpdate: true
184+
packageName: '$(nugetPackageName)'
179185
repositoriesToUpdate: |
180186
nanoFramework.TestFramework
181187
nanoFramework.Device.OneWire
182188
nanoFramework.Runtime.Events
183189
nanoFramework.Runtime.Native
184-
nanoFramework.Hardware.Stm32
190+
nanoFramework.Hardware.GiantGecko
185191
nanoFramework.Hardware.TI
186192
nanoFramework.Networking.Sntp
187193
nanoFramework.TI.EasyLink
@@ -192,24 +198,16 @@ jobs:
192198
System.Device.I2c
193199
System.Device.I2c.Slave
194200
System.Device.Pwm
195-
System.Device.Spi
196-
System.IO.Hashing
197-
System.Math
198-
System.Text
199-
System.Security.Cryptography
201+
System.Device.I2s
200202
201-
# update dependents
202-
- template: azure-pipelines-templates/update-dependents.yml@templates
203-
parameters:
204-
${{ if eq(variables['UPDATE_DEPENDENTS'], 'true') }}:
205-
waitBeforeUpdate: false
206-
${{ else }}:
207-
waitBeforeUpdate: true
208-
repositoriesToUpdate: |
209-
nanoFramework.Logging
210-
nanoFramework.Json
211-
System.Collections
212-
System.Threading
203+
# update Visual Studio extension
204+
- task: PowerShell@2
205+
displayName: Update VS extension
206+
inputs:
207+
targetType: filePath
208+
filePath: azure-pipelines/update-vs-extension.ps1
209+
env:
210+
GITHUB_TOKEN: $(GitHubToken)
213211

214212
##################################
215213
# report build failure to Discord

0 commit comments

Comments
 (0)