Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
feat: publish nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroKaku committed May 24, 2022
1 parent 35d2b1a commit a43ee13
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 26 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: Build & Publish
name: build & publish

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
Expand Down Expand Up @@ -79,10 +79,19 @@ jobs:
- name: publish a version
if: contains(github.ref, 'tags/')
working-directory: ${{github.workspace}}
uses: "marvinpinto/action-automatic-releases@v1.2.1"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
ucxxrt.zip
*.nupkg
*.nupkg
- name: publish nuget
if: contains(github.ref, 'tags/')
working-directory: ${{github.workspace}}
shell: cmd
run: |
nuget push ucxxrt.${{env.BuildVersion}}.nupkg -ApiKey ${{ secrets.NUGET_TOKEN }} -Source https://api.nuget.org/v3/index.json
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL%
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,30 +85,31 @@ void Test$HashMap()
}
```

## 2. Compile

IDE:Visual Studio 2019 or higher

* `git clone https://github.com/MiroKaku/ucxxrt.git`
* Open `ucxxrt.sln` and compile

## 3. How to use
## 2. How to use

**First, rename `DriverEntry` to `DriverMain`**

### 3.1 Option 1(NuGet)
> Publishing to nuget.org requires a signing certificate, no money.
### 2.1 Option 1 (recommend)

Right click on the project and select "Manage NuGet Packages", then search for `ucxxrt` and choose the version that suits you, and finally click "Install".

~~Right click on the project and select "Manage NuGet Packages", then search for `ucxxrt` and choose the version that suits you, and finally click "Install".~~
![nuget](./readme/nuget.png)

### 3.2 Option 2
### 2.2 Option 2

1. Download the latest package from [release](https://github.com/MiroKaku/ucxxrt/releases) and unzip it.

2. Add the property sheet `ucxxrt.props` to yor project.

![usage](./readme/use.gif)

## 3. How to compile

IDE:Visual Studio 2019 or higher

* `git clone https://github.com/MiroKaku/ucxxrt.git`
* Open `ucxxrt.sln` and compile.

## 4. Reference and Acknowledgement

* [Microsoft's C++ Standard Library](https://github.com/microsoft/stl)
Expand Down
25 changes: 13 additions & 12 deletions ReadMe.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,29 +83,30 @@ void Test$HashMap()
}
```

## 2. 编译

IDE:Visual Studio 2019 或更高版本

* `git clone https://github.com/MiroKaku/ucxxrt.git`
* 打开 `ucxxrt.sln` 进行编译

## 3. 怎样使用
## 2. 怎样使用

**首先 `DriverEntry` 需要改为 `DriverMain`**

### 3.1 方法一(NuGet)
> 发布到 nuget.org 需要签名证书,没钱。
### 2.1 方法一(推荐)

右键单击该项目并选择“管理 NuGet 包”,然后搜索`ucxxrt`并选择适合你的版本,最后单击“安装”。

~~右键单击该项目并选择“管理 NuGet 包”,然后搜索`ucxxrt`并选择适合你的版本,最后单击“安装”。~~
![nuget](./readme/nuget.png)

### 3.2 方法二
### 2.2 方法二

1.[release](https://github.com/MiroKaku/ucxxrt/releases) 下载最新包并解压。
2. 在 Visual Studio 中,你可以打开属性管理器(视图 - 属性管理器),然后右键添加现有属性表,然后选择 `ucxxrt.props` 即可。

![使用方法](./readme/use.zh-cn.gif)

## 3. 怎样编译

IDE:Visual Studio 2019 或更高版本

* `git clone https://github.com/MiroKaku/ucxxrt.git`
* 打开 `ucxxrt.sln` 进行编译。

## 4. 引用参考和感谢

* [Microsoft's C++ Standard Library](https://github.com/microsoft/stl)
Expand Down
Binary file added readme/nuget.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a43ee13

Please sign in to comment.