1
0
Fork 0
mirror of https://github.com/TransparentLC/opencl_vanity_gpg.git synced 2025-10-20 07:14:09 +00:00

添加自动编译

This commit is contained in:
✨小透明・宸✨ 2025-01-09 00:28:35 +08:00
parent 880a437547
commit f4e4050ef8
No known key found for this signature in database
GPG key ID: C90F42D9852EE21E
2 changed files with 7 additions and 2 deletions

View file

@ -43,7 +43,12 @@ jobs:
id: build
shell: bash
run: |
RUSTFLAGS="--remap-path-prefix $HOME=~" cargo build --release
if [[ "$RUNNER_OS" == "Windows" ]]; then
export RUSTFLAGS="--remap-path-prefix C:\\Users\\runneradmin=~"
else
export RUSTFLAGS="--remap-path-prefix $HOME=~"
fi
cargo build --release
if [[ "$RUNNER_OS" == "Windows" ]]; then
echo "executable=target/release/opencl_vanity_gpg.exe" >> $GITHUB_OUTPUT
else

View file

@ -19,7 +19,7 @@
目前最好的同类工具是使用 CPU 的 [RedL0tus/VanityGPG](https://github.com/RedL0tus/VanityGPG) 和使用 GPUCUDA的 [cuihaoleo/gpg-fingerprint-filter-gpu](https://github.com/cuihaoleo/gpg-fingerprint-filter-gpu)。这个项目是使用 GPUOpenCL实现的优点当然是开箱即用了。
> TODO: GitHub Actions 自动编译
GitHub Actions 自动编译好的二进制文件。
# 使用方法