This repository was archived by the owner on Jul 15, 2026. It is now read-only.
ci: 添加 d3d9.dll artifact 和 release asset #12
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 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 |