Skip to content

docs: README.md 改为中文,英文移至 README.en.md #5

docs: README.md 改为中文,英文移至 README.en.md

docs: README.md 改为中文,英文移至 README.en.md #5

Workflow file for this run

name: Build
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
branches: [main]
jobs:
check:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
targets: i686-pc-windows-msvc
components: clippy
- name: Clippy
run: cargo clippy -- -D warnings
- name: Build
run: cargo build --release
build:
runs-on: windows-latest
needs: check
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
targets: i686-pc-windows-msvc
- name: Build
run: cargo build --release
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: version.dll
path: target/i686-pc-windows-msvc/release/version.dll
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: version.dll
- uses: softprops/action-gh-release@v2
with:
files: version.dll