first commit
This commit is contained in:
12
LibreHardwareMonitor-0.9.4/.github/FUNDING.yml
vendored
Normal file
12
LibreHardwareMonitor-0.9.4/.github/FUNDING.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: [phyxionnl] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
||||
20
LibreHardwareMonitor-0.9.4/.github/dependabot.yml
vendored
Normal file
20
LibreHardwareMonitor-0.9.4/.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
# To get started with Dependabot version updates, you'll need to specify which
|
||||
# package ecosystems to update and where the package manifests are located.
|
||||
# Please see the documentation for all configuration options:
|
||||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
# LibreHardwareMonitor.csproj
|
||||
- package-ecosystem: "nuget"
|
||||
directory: "/LibreHardwareMonitor"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
open-pull-requests-limit: 10
|
||||
|
||||
# LibreHardwareMonitorLib.csproj
|
||||
- package-ecosystem: "nuget"
|
||||
directory: "/LibreHardwareMonitorLib"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
open-pull-requests-limit: 10
|
||||
75
LibreHardwareMonitor-0.9.4/.github/workflows/master.yml
vendored
Normal file
75
LibreHardwareMonitor-0.9.4/.github/workflows/master.yml
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
name: master
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: nuget/setup-nuget@v2
|
||||
- uses: microsoft/setup-msbuild@v1.1
|
||||
with:
|
||||
msbuild-architecture: x64
|
||||
|
||||
- uses: dorny/paths-filter@v2
|
||||
id: changes
|
||||
with:
|
||||
filters: |
|
||||
buildprops:
|
||||
- 'Directory.Build.props'
|
||||
|
||||
- name: Update version
|
||||
if: steps.changes.outputs.buildprops == 'false'
|
||||
run: |
|
||||
(Get-Content Directory.Build.props) | % {
|
||||
$m = [regex]::match($_, '<Version>(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?</Version>');
|
||||
if(!$m.Success -or $m.Groups[4].Success -or $m.Groups[5].Success) { $_; }
|
||||
else { $_ -replace $m.Value, ("<Version>{0}.{1}.{2}-pre${{ github.run_number }}</Version>" -f $m.Groups[1].Value,$m.Groups[2].Value,([convert]::ToInt32($m.Groups[3].Value)+1)); }
|
||||
} | Set-Content Directory.Build.props
|
||||
|
||||
- name: NuGet restore
|
||||
run: nuget restore LibreHardwareMonitor.sln
|
||||
|
||||
- name: Build
|
||||
run: msbuild LibreHardwareMonitor.sln -p:Configuration=Release -m
|
||||
|
||||
- name: Publish net472
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: LibreHardwareMonitor-net472
|
||||
path: |
|
||||
bin/Release/net472
|
||||
|
||||
- name: Publish netstandard20
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: LibreHardwareMonitorLib-netstandard20
|
||||
path: |
|
||||
bin/Release/netstandard2.0
|
||||
|
||||
- name: Publish net60
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: LibreHardwareMonitorLib-net60
|
||||
path: |
|
||||
bin/Release/net6.0
|
||||
|
||||
- name: Publish net70
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: LibreHardwareMonitorLib-net70
|
||||
path: |
|
||||
bin/Release/net7.0
|
||||
|
||||
- name: Publish nupkg
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: LibreHardwareMonitorLib-nupkg
|
||||
path: |
|
||||
bin/Release/LibreHardwareMonitorLib.*.nupkg
|
||||
|
||||
- name: Publish to NuGet
|
||||
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
|
||||
71
LibreHardwareMonitor-0.9.4/.github/workflows/pull requests.yml
vendored
Normal file
71
LibreHardwareMonitor-0.9.4/.github/workflows/pull requests.yml
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
name: pull requests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: nuget/setup-nuget@v2
|
||||
- uses: microsoft/setup-msbuild@v1.1
|
||||
with:
|
||||
msbuild-architecture: x64
|
||||
|
||||
- uses: dorny/paths-filter@v2
|
||||
id: changes
|
||||
with:
|
||||
filters: |
|
||||
buildprops:
|
||||
- 'Directory.Build.props'
|
||||
- name: Update version
|
||||
if: steps.changes.outputs.buildprops == 'false'
|
||||
run: |
|
||||
(Get-Content Directory.Build.props) | % {
|
||||
$m = [regex]::match($_, '<Version>(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?</Version>');
|
||||
if(!$m.Success -or $m.Groups[4].Success -or $m.Groups[5].Success) { $_; }
|
||||
else { $_ -replace $m.Value, ("<Version>{0}.{1}.{2}-ci${{ github.run_number }}</Version>" -f $m.Groups[1].Value,$m.Groups[2].Value,([convert]::ToInt32($m.Groups[3].Value)+1)); }
|
||||
} | Set-Content Directory.Build.props
|
||||
|
||||
- name: NuGet restore
|
||||
run: nuget restore LibreHardwareMonitor.sln
|
||||
|
||||
- name: Build
|
||||
run: msbuild LibreHardwareMonitor.sln -p:Configuration=Release -m
|
||||
|
||||
- name: Publish net472
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: LibreHardwareMonitor-net472
|
||||
path: |
|
||||
bin/Release/net472
|
||||
|
||||
- name: Publish netstandard20
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: LibreHardwareMonitorLib-netstandard20
|
||||
path: |
|
||||
bin/Release/netstandard2.0
|
||||
|
||||
- name: Publish net60
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: LibreHardwareMonitorLib-net60
|
||||
path: |
|
||||
bin/Release/net6.0
|
||||
|
||||
- name: Publish net70
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: LibreHardwareMonitorLib-net70
|
||||
path: |
|
||||
bin/Release/net7.0
|
||||
|
||||
- name: Publish nupkg
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: LibreHardwareMonitorLib-nupkg
|
||||
path: |
|
||||
bin/Release/LibreHardwareMonitorLib.*.nupkg
|
||||
Reference in New Issue
Block a user