Skip to content

Commit 14d72c2

Browse files
authored
Enable GitHub Actions (#41)
1 parent 74baadc commit 14d72c2

File tree

5 files changed

+92
-34
lines changed

5 files changed

+92
-34
lines changed

.github/workflows/linux.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Linux
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-20.04
12+
13+
steps:
14+
- name: Checkout source code
15+
uses: actions/checkout@v4
16+
17+
- name: Build source code
18+
run: |
19+
dotnet --info
20+
dotnet restore -p:Configuration=Release -p:Platform="Any CPU" -v normal ./src/
21+
dotnet build -p:Configuration=Release -p:Platform="Any CPU" -v normal ./src/
22+
23+
- name: Test netstandard2.0 assembly in net80 application
24+
run: |
25+
dotnet test -f net8.0 ./src/Pkcs11Interop.X509Store.Tests/bin/Release/net80/Pkcs11Interop.X509Store.Tests.dll

.github/workflows/macos.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: macOS
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
runs-on: macos-13
12+
13+
steps:
14+
- name: Checkout source code
15+
uses: actions/checkout@v4
16+
17+
- name: Build source code
18+
run: |
19+
dotnet --info
20+
dotnet restore -p:Configuration=Release -p:Platform="Any CPU" -v normal ./src/
21+
dotnet build -p:Configuration=Release -p:Platform="Any CPU" -v normal ./src/
22+
23+
- name: Test netstandard2.0 assembly in net80 application
24+
run: |
25+
dotnet test -f net8.0 ./src/Pkcs11Interop.X509Store.Tests/bin/Release/net80/Pkcs11Interop.X509Store.Tests.dll

.github/workflows/windows.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Windows
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- name: Set up OS
15+
run: |
16+
choco install --no-progress nunit-console-runner
17+
18+
- name: Set up msbuild
19+
uses: microsoft/setup-msbuild@v2
20+
21+
- name: Checkout source code
22+
uses: actions/checkout@v4
23+
24+
- name: Build source code
25+
shell: cmd
26+
run: |
27+
msbuild .\src\Pkcs11Interop.X509Store.sln /p:Configuration=Release /p:Platform="Any CPU" /target:Restore
28+
msbuild .\src\Pkcs11Interop.X509Store.sln /p:Configuration=Release /p:Platform="Any CPU" /target:Rebuild
29+
30+
- name: Test net461 assembly
31+
shell: cmd
32+
run: |
33+
nunit3-console .\src\Pkcs11Interop.X509Store.Tests\bin\Release\net481\Pkcs11Interop.X509Store.Tests.dll
34+
35+
- name: Test netstandard2.0 assembly in net80 application
36+
shell: cmd
37+
run: |
38+
dotnet vstest .\src\Pkcs11Interop.X509Store.Tests\bin\Release\net80\Pkcs11Interop.X509Store.Tests.dll /Framework:"net8.0"

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ Pkcs11Interop.X509Store
33
**Easy to use PKCS#11 based X.509 certificate store**
44

55
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/Pkcs11Interop/Pkcs11Interop.X509Store/blob/master/LICENSE.md)
6-
[![AppVeyor](https://ci.appveyor.com/api/projects/status/l5hr66s6dnmajh0y/branch/master?svg=true)](https://ci.appveyor.com/project/pkcs11interop/pkcs11interop-x509store/branch/master)
76
[![NuGet](https://img.shields.io/badge/nuget-pkcs11interop.x509store-blue.svg)](https://www.nuget.org/packages/Pkcs11Interop.X509Store/)
87
[![Stack Overflow](https://img.shields.io/badge/stack-pkcs11interop-blue.svg)](https://stackoverflow.com/questions/tagged/pkcs11interop)
98
[![Twitter](https://img.shields.io/badge/twitter-p11interop-blue.svg)](https://twitter.com/p11interop)
109

10+
[![Windows](https://github.com/Pkcs11Interop/Pkcs11Interop.X509Store/actions/workflows/windows.yml/badge.svg?branch=master)](https://github.com/Pkcs11Interop/Pkcs11Interop.X509Store/actions/workflows/windows.yml)
11+
[![Linux](https://github.com/Pkcs11Interop/Pkcs11Interop.X509Store/actions/workflows/linux.yml/badge.svg?branch=master)](https://github.com/Pkcs11Interop/Pkcs11Interop.X509Store/actions/workflows/linux.yml)
12+
[![macOS](https://github.com/Pkcs11Interop/Pkcs11Interop.X509Store/actions/workflows/macos.yml/badge.svg?branch=master)](https://github.com/Pkcs11Interop/Pkcs11Interop.X509Store/actions/workflows/macos.yml)
13+
1114
## Overview
1215

1316
The PKCS#11 API offers unparalleled versatility and functionality across platforms and cryptographic scenarios. However, its inherent complexity, rooted in C language design and low-level concepts, can present a steep learning curve for developers. [Pkcs11Interop](https://github.com/Pkcs11Interop/Pkcs11Interop) emerged as a .NET wrapper for PKCS#11, aiming to provide a more developer-friendly interface while retaining the full power of the underlying PKCS#11 API. Despite its advancements, Pkcs11Interop still demands a deep understanding of cryptographic principles and the PKCS#11 specification, making it challenging to use correctly. To bridge this gap, Pkcs11Interop.X509Store comes into play.

appveyor.yml

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

0 commit comments

Comments
 (0)