Compare commits
No commits in common. "master" and "1.0.0" have entirely different histories.
|
@ -0,0 +1,47 @@
|
||||||
|
version: 2.1
|
||||||
|
|
||||||
|
defaults: &defaults
|
||||||
|
working_directory: ~/repo
|
||||||
|
docker:
|
||||||
|
- image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
||||||
|
environment:
|
||||||
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
||||||
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
<<: *defaults
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run: dotnet restore
|
||||||
|
- run: dotnet build -c Release
|
||||||
|
- run: dotnet test -c Release
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: .
|
||||||
|
paths: ./src/bin
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
<<: *defaults
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- attach_workspace:
|
||||||
|
at: .
|
||||||
|
- run: dotnet nuget push ./src/bin/Release/MoonTools.FastCollections.*.nupkg -k $API_KEY -s https://api.nuget.org/v3/index.json
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
test_and_deploy:
|
||||||
|
jobs:
|
||||||
|
- test:
|
||||||
|
filters:
|
||||||
|
tags:
|
||||||
|
only: /.*/
|
||||||
|
- deploy:
|
||||||
|
requires:
|
||||||
|
- test
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
||||||
|
tags:
|
||||||
|
only: /^\d+\.\d+\.\d+(-preview\d*)?$/
|
||||||
|
|
24
.drone.yml
24
.drone.yml
|
@ -1,24 +0,0 @@
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: default
|
|
||||||
|
|
||||||
workspace:
|
|
||||||
path: /build
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: test
|
|
||||||
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
|
||||||
commands:
|
|
||||||
- dotnet build -c Release
|
|
||||||
- dotnet test -c Release
|
|
||||||
|
|
||||||
- name: deploy
|
|
||||||
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
|
||||||
environment:
|
|
||||||
API_KEY:
|
|
||||||
from_secret: API_KEY
|
|
||||||
commands:
|
|
||||||
- dotnet nuget push /build/src/bin/Release/MoonTools.FastCollections.*.nupkg -s https://api.nuget.org/v3/index.json -k $API_KEY
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/tags/*.*.*
|
|
|
@ -34,6 +34,12 @@ namespace MoonTools.FastCollections
|
||||||
for (; count != 0; count--) if (*p++ != *q++) { return false; }
|
for (; count != 0; count--) if (*p++ != *q++) { return false; }
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool NotEqual(uint* p, uint* q, int count)
|
||||||
|
{
|
||||||
|
for (; count != 0; count--) if (*p++ == *q++) { return false; }
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public unsafe struct BitSet512 : IEquatable<BitSet512>
|
public unsafe struct BitSet512 : IEquatable<BitSet512>
|
||||||
|
|
Loading…
Reference in New Issue