Skip to content

Commit

Permalink
add github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
xutianyi1999 committed Apr 7, 2022
1 parent 6d29439 commit 1274e34
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .cargo/config.toml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fubuki"
version = "0.4.2"
version = "0.4.3"
authors = ["xty <xutianyi1999@live.com>"]
edition = "2021"

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1274e34

Please sign in to comment.