diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index 8e758c6..0000000 --- a/.cargo/config.toml +++ /dev/null @@ -1,2 +0,0 @@ -[build] -rustflags = "-C target-cpu=native" \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..8e367f3 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,48 @@ +name: Release + +on: + push: + tags: + - v[0-9]+.* + +jobs: + create-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: taiki-e/create-gh-release-action@v1 + env: + # (required) + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + upload-assets: + strategy: + matrix: + include: + - target: x86_64-apple-darwin + os: macos-latest + - target: x86_64-pc-windows-msvc + os: windows-latest + - target: x86_64-unknown-linux-musl + os: ubuntu-latest + - target: aarch64-unknown-linux-musl + os: ubuntu-latest + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: taiki-e/upload-rust-binary-action@v1 + with: + target: ${{ matrix.target }} + # (required) + bin: fubuki + # (optional) On which platform to distribute the `.tar.gz` file. + # [default value: unix] + # [possible values: all, unix, windows, none] + tar: unix + # (optional) On which platform to distribute the `.zip` file. + # [default value: windows] + # [possible values: all, unix, windows, none] + zip: windows + env: + # (required) + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index 9eebe7c..a5c42b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fubuki" -version = "0.4.2" +version = "0.4.3" authors = ["xty "] edition = "2021" diff --git a/README.md b/README.md index af74e2e..faa9154 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ sudo ./fubuki client client-config.json Windows平台toolchain需要为MSVC +如果需要开启AES-NI指令集,添加环境变量`RUSTFLAGS="-C target-cpu=native"` ```shell git clone "https://github.com/xutianyi1999/fubuki"; cd fubuki;