-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update target framework version for .NET 9.0
- Loading branch information
Showing
56 changed files
with
2,656 additions
and
2,675 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [Latency] | ||
patreon: | ||
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 | ||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
polar: # Replace with a single Polar username | ||
buy_me_a_coffee: latency | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Smartphone (please complete the following information):** | ||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser [e.g. stock browser, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Test | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, self-hosted] | ||
|
||
steps: | ||
|
||
- name: Get BIN_DIR | ||
id: bin-dir | ||
shell: bash | ||
run: | | ||
if [ "$RUNNER_OS" == "Linux" ]; then | ||
bin_dir='${{ github.workspace }}/AssemblyLoader/bin/${{ matrix.BuildConfiguration }}' | ||
elif [ "$RUNNER_OS" == "Windows" ]; then | ||
bin_dir='${{ github.workspace }}\AssemblyLoader\bin\${{ matrix.BuildConfiguration }}' | ||
else | ||
echo "$RUNNER_OS not supported" | ||
exit 1 | ||
fi | ||
echo "$bin_dir" | ||
echo "BIN_DIR=$bin_dir" >> $GITHUB_ENV | ||
- name: Get BRANCH_NAME | ||
id: branch-name | ||
shell: bash | ||
run: | | ||
if [ "$RUNNER_OS" == "Linux" ]; then | ||
split=(${GITHUB_REF_NAME//\// }) | ||
elif [ "$RUNNER_OS" == "Windows" ]; then | ||
split=(${GITHUB_REF_NAME////// }) | ||
else | ||
echo "$RUNNER_OS not supported" | ||
exit 1 | ||
fi | ||
index=$((${#split[@]}-1)) | ||
branch_name=${split[$index]} | ||
echo "$branch_name" | ||
echo "BRANCH_NAME=$branch_name" >> $GITHUB_ENV | ||
- name: Get Build Artifacts | ||
if: false | ||
shell: bash | ||
run: | | ||
mkdir -p Packages | ||
curl -sS -O -L 'https://github.com/${{ github.repository_owner }}/Build-Configs/blob/master/{snKey.snk,Kitty.png}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: Delete Workflow Runs | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
days: | ||
description: 'Days-worth of runs to keep for each workflow' | ||
required: true | ||
default: '30' | ||
minimum_runs: | ||
description: 'Minimum runs to keep for each workflow' | ||
required: true | ||
default: '6' | ||
delete_workflow_pattern: | ||
description: 'Name or filename of the workflow (if not set, all workflows are targeted)' | ||
required: false | ||
delete_workflow_by_state_pattern: | ||
description: 'Filter workflows by state: active, deleted, disabled_fork, disabled_inactivity, disabled_manually' | ||
required: true | ||
default: "ALL" | ||
type: choice | ||
options: | ||
- "ALL" | ||
- active | ||
- deleted | ||
- disabled_inactivity | ||
- disabled_manually | ||
delete_run_by_conclusion_pattern: | ||
description: 'Remove runs based on conclusion: action_required, cancelled, failure, skipped, success' | ||
required: true | ||
default: "ALL" | ||
type: choice | ||
options: | ||
- "ALL" | ||
- "Unsuccessful: action_required,cancelled,failure,skipped" | ||
- action_required | ||
- cancelled | ||
- failure | ||
- skipped | ||
- success | ||
dry_run: | ||
description: 'Dry Run' | ||
default: false | ||
type: boolean | ||
required: false | ||
|
||
jobs: | ||
del_runs: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: write | ||
contents: read | ||
steps: | ||
- name: Delete workflow runs | ||
run: | | ||
if [ ${{ github.event.inputs.dry_run }} = true ]; then | ||
echo "DRY_RUN=${{ github.event.inputs.dry_run }}" >> $GITHUB_ENV | ||
else | ||
echo "DRY_RUN=" >> $GITHUB_ENV | ||
fi | ||
- name: Delete workflow runs | ||
uses: Mattraks/[email protected] | ||
with: | ||
token: ${{ github.token }} | ||
repository: ${{ github.repository }} | ||
retain_days: ${{ github.event.inputs.days }} | ||
keep_minimum_runs: ${{ github.event.inputs.minimum_runs }} | ||
delete_workflow_pattern: ${{ github.event.inputs.delete_workflow_pattern }} | ||
delete_workflow_by_state_pattern: ${{ github.event.inputs.delete_workflow_by_state_pattern }} | ||
delete_run_by_conclusion_pattern: >- | ||
${{ | ||
startsWith(github.event.inputs.delete_run_by_conclusion_pattern, 'Unsuccessful:') | ||
&& 'action_required,cancelled,failure,skipped' | ||
|| github.event.inputs.delete_run_by_conclusion_pattern | ||
}} | ||
dry_run: ${{ env.DRY_RUN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,56 @@ | ||
name: .NET | ||
name: .NET Core Desktop Build | ||
env: | ||
NUGET_SERVER_URL: "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" | ||
NUGET_CONFIG: "../NuGet.config" | ||
GH_TOKEN: ${{ secrets.LATENCY_PAT }} | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
branches: master | ||
|
||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
if: ${{ startsWith(github.ref, 'refs/tags/') == false }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
os: [self-hosted] #, ubuntu-latest, windows-latest] | ||
BuildConfiguration: [ Release ] | ||
max-parallel: 2 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
|
||
- name: Copy NuGet.Config Template | ||
run: | | ||
copy ../NuGet.Config.template ../NuGet.Config | ||
- name: Update NuGet Config | ||
run: | | ||
nuget config -Set defaultPushSource="${{ env.NUGET_SERVER_URL }}" -ConfigFile ${{ env.NUGET_CONFIG }} | ||
dotnet nuget add source --username ${{ github.repository_owner }} --password ${{ secrets.NUGET_AUTH_TOKEN }} --protocol-version 3 --configfile ${{ env.NUGET_CONFIG }} --store-password-in-clear-text --name github "${{ env.NUGET_SERVER_URL }}" | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: '0' | ||
|
||
- uses: actions/[email protected] | ||
if: matrix.os != 'self-hosted' | ||
with: | ||
dotnet-version: 5.0.x | ||
dotnet-version: '8.0.x' | ||
dotnet-quality: 'signed' | ||
source-url: ${{ env.NUGET_SERVER_URL }} | ||
env: | ||
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_AUTH_TOKEN }} | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
working-directory: src/ | ||
- name: Build | ||
run: dotnet build --no-restore | ||
working-directory: src/ | ||
- name: Test | ||
run: dotnet test --no-build --verbosity normal | ||
working-directory: src/ | ||
id: build | ||
run: | | ||
dotnet build --no-restore --configuration ${{ matrix.BuildConfiguration }} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.