Skip to content

Commit a0e01d6

Browse files
committed
Work CI-CD
- Add github actions. - Brought nuspec, AZDO pipeline and other CI-CD files up to date. - Remove unused files. - Add packages lock file. - Update README. ***NO_CI***
1 parent ae826c7 commit a0e01d6

12 files changed

+77
-95
lines changed

.github/pr-checks.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright (c) .NET Foundation and Contributors
2+
# See LICENSE file in the project root for full license information.
3+
4+
name: PR Checks
5+
6+
on:
7+
pull_request:
8+
9+
jobs:
10+
check_package_lock:
11+
name: nanoFramework
12+
uses: nanoframework/nf-tools/.github/workflows/check-package-lock.yml@main
13+
check_nuget_latest:
14+
name: nanoFramework
15+
uses: nanoframework/nf-tools/.github/workflows/check-packages-updated.yml@main
16+
with:
17+
solution: 'nanoFramework.System.Device.I2s.sln'

.github/update-dependencies.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) .NET Foundation and Contributors
2+
# See LICENSE file in the project root for full license information.
3+
4+
# This workflow will periodically check .NET nanoFramework dependencies and updates them in the repository it's running.
5+
# Can also be triggered by a repository dispatch event.
6+
7+
name: Update .NET nanoFramework dependencies
8+
9+
on:
10+
schedule:
11+
# At 00:00 UTC every day.
12+
- cron: '00 00 * * *'
13+
repository_dispatch:
14+
types: update-dependencies
15+
16+
jobs:
17+
update-dependencies:
18+
name: nanoFramework
19+
uses: nanoframework/nf-tools/.github/workflows/update-dependencies.yml@main
20+
with:
21+
solutionsToCheck: 'nanoFramework.System.Device.I2s.sln'
22+
secrets:
23+
githubAuth: ${{ secrets.NFBOT_GITHUB_ACTIONS }}

.github_changelog_generator

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ exclude_labels=Area: Config-and-Build,Area: Infrastructure-and-Organization,reve
99
enhancement_labels=Type: enhancement
1010
bug_labels=Type: bug
1111
merge_prefix=**Documentation and other chores:**
12-
unreleased_label=**Changes available only in 'Preview' NuGet packages:**
1312
author=false

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_lib-nanoframework.System.Device.I2s&metric=alert_status)](https://sonarcloud.io/dashboard?id=nanoframework_lib-nanoframework.System.Device.I2s) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_lib-nanoframework.System.Device.I2s&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=nanoframework_lib-nanoframework.System.Device.I2s) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![NuGet](https://img.shields.io/nuget/dt/nanoFramework.System.Device.I2s.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/nanoFramework.System.Device.I2s/) [![#yourfirstpr](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/nanoframework/Home/blob/main/CONTRIBUTING.md) [![Discord](https://img.shields.io/discord/478725473862549535.svg?logo=discord&logoColor=white&label=Discord&color=7289DA)](https://discord.gg/gCyBu8T)
1+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_lib-nanoframework.System.Device.I2s&metric=alert_status)](https://sonarcloud.io/dashboard?id=nanoframework_lib-nanoframework.System.Device.I2s) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_lib-nanoframework.System.Device.I2s&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=nanoframework_lib-nanoframework.System.Device.I2s) [![NuGet](https://img.shields.io/nuget/dt/nanoFramework.System.Device.I2s.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/nanoFramework.System.Device.I2s/) [![#yourfirstpr](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/nanoframework/Home/blob/main/CONTRIBUTING.md) [![Discord](https://img.shields.io/discord/478725473862549535.svg?logo=discord&logoColor=white&label=Discord&color=7289DA)](https://discord.gg/gCyBu8T)
22

33
![nanoFramework logo](https://raw.githubusercontent.com/nanoframework/Home/main/resources/logo/nanoFramework-repo-logo.png)
44

@@ -10,8 +10,7 @@
1010

1111
| Component | Build Status | NuGet Package |
1212
|:-|---|---|
13-
| System.Device.I2s | [![Build Status](https://dev.azure.com/nanoframework/System.Device.I2s/_apis/build/status/nanoframework.lib-System.Device.I2s?branchName=develop)](https://dev.azure.com/nanoframework/System.Device.I2s/_build/latest?definitionId=64&branchName=main) | [![NuGet](https://img.shields.io/nuget/v/nanoFramework.System.Device.I2s.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/nanoFramework.System.Device.I2s/) |
14-
| System.Device.I2s (preview) | [![Build Status](https://dev.azure.com/nanoframework/System.Device.I2s/_apis/build/status/nanoframework.lib-System.Device.I2s?branchName=develop)](https://dev.azure.com/nanoframework/System.Device.I2s/_build/latest?definitionId=64&branchName=develop) | [![NuGet](https://img.shields.io/nuget/vpre/nanoFramework.System.Device.I2s.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/nanoFramework.System.Device.I2s/) |
13+
| System.Device.I2s | [![Build Status](https://dev.azure.com/nanoframework/System.Device.I2s/_apis/build/status/System.Device.I2s?branchName=main)](https://dev.azure.com/nanoframework/System.Device.I2s/_build/latest?definitionId=78&branchName=main) | [![NuGet](https://img.shields.io/nuget/v/nanoFramework.System.Device.I2s.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/nanoFramework.System.Device.I2s/) |
1514

1615
## Feedback and documentation
1716

System.Device.I2s/System.Device.I2s.nfproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion>
1818
<NF_IsCoreLibrary>True</NF_IsCoreLibrary>
1919
<DocumentationFile>bin\$(Configuration)\System.Device.I2s.xml</DocumentationFile>
20+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
21+
<RestoreLockedMode Condition="'$(TF_BUILD)' == 'True' or '$(ContinuousIntegrationBuild)' == 'True'">true</RestoreLockedMode>
2022
</PropertyGroup>
2123
<PropertyGroup>
2224
<SignAssembly>true</SignAssembly>
@@ -30,7 +32,7 @@
3032
<PropertyGroup>
3133
<!-- override default options for MetaDataProcessor -->
3234
<NF_GenerateStubsDirectory>bin\$(Configuration)\Stubs</NF_GenerateStubsDirectory>
33-
<NF_GenerateSkeletonProjectName>sys_dev_I2s_native</NF_GenerateSkeletonProjectName>
35+
<NF_GenerateSkeletonProjectName>sys_dev_i2s_native</NF_GenerateSkeletonProjectName>
3436
</PropertyGroup>
3537
<ItemGroup>
3638
<NFMDP_PE_ExcludeClassByName Include="ThisAssembly">
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": 1,
3+
"dependencies": {
4+
".NETnanoFramework,Version=v1.0": {
5+
"nanoFramework.CoreLibrary": {
6+
"type": "Direct",
7+
"requested": "[1.12.0, 1.12.0]",
8+
"resolved": "1.12.0",
9+
"contentHash": "qQrFNXmJiStMC4VXk5cVMOJp23/qlT9FW5i9i+igwQVwraQTtvpkam8yK1hj992jqrbjoCIFZP4Hw9E8H0pB7w=="
10+
},
11+
"Nerdbank.GitVersioning": {
12+
"type": "Direct",
13+
"requested": "[3.5.107, 3.5.107]",
14+
"resolved": "3.5.107",
15+
"contentHash": "oMWWTe9aTUJ1CwU4fpfpduqx7Hzve320PU2SUyFFDzlHXTdjEouWHtFrRbaXV4LysL0lBtlzJM/nmHm47p2KWw=="
16+
}
17+
}
18+
}
19+
}

azure-pipelines.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright (c) .NET Foundation and Contributors
22
# See LICENSE file in the project root for full license information.
3+
34
trigger:
45
branches:
56
include:
@@ -19,6 +20,10 @@ trigger:
1920
- config/*
2021
- .github/*
2122

23+
tags:
24+
include:
25+
- v*
26+
2227
# PR always trigger build
2328
pr:
2429
autoCancel: true
@@ -36,7 +41,7 @@ pool:
3641

3742
variables:
3843
DOTNET_NOLOGO: true
39-
solution: 'nanoFramework.System.Device.I2s*.sln'
44+
solution: 'nanoFramework.System.Device.I2s.sln'
4045
buildPlatform: 'Any CPU'
4146
buildConfiguration: 'Release'
4247
nugetPackageName: 'nanoFramework.System.Device.I2s'

nanoFramework.System.Device.I2s.nuspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
<id>nanoFramework.System.Device.I2s</id>
55
<version>$version$</version>
66
<title>nanoFramework.System.Device.I2s</title>
7-
<authors>.NET nanoFramework project contributors</authors>
8-
<owners>nanoframework,dotnetfoundation</owners>
7+
<authors>nanoframework</authors>
98
<requireLicenseAcceptance>false</requireLicenseAcceptance>
109
<license type="file">LICENSE.md</license>
1110
<releaseNotes>

0 commit comments

Comments
 (0)