fix: 对齐 segatools 修复外部 DLL 的 AIR 与 LED 输出 #21
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 | |
| with: | |
| submodules: recursive | |
| - 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 | |
| with: | |
| submodules: recursive | |
| - 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: AppleChu.dll | |
| path: target/i686-pc-windows-msvc/release/AppleChu.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: AppleChu.dll | |
| - uses: softprops/action-gh-release@v2 | |
| with: | |
| files: AppleChu.dll |