refactor: 切换至 winhttp 代理并重构 ABI/d3d9 架构 #16
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 version.dll | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: version.dll | |
| path: target/i686-pc-windows-msvc/release/version.dll | |
| - name: Upload d3d9.dll | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: d3d9.dll | |
| path: target/i686-pc-windows-msvc/release/d3d9.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: actions/download-artifact@v4 | |
| with: | |
| name: d3d9.dll | |
| - uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| version.dll | |
| d3d9.dll |