This repository was archived by the owner on Jul 15, 2026. It is now read-only.
fix: 修复工作流 winhttp.dll 的上传 #18
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 winhttp.dll | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: winhttp.dll | |
| path: target/i686-pc-windows-msvc/release/winhttp.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: winhttp.dll | |
| - uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| winhttp.dll |