首次上传 #1
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: Release Client | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| pages: read | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: windows-latest | |
| rustc-target: x86_64-pc-windows-msvc | |
| - os: ubuntu-latest | |
| rustc-target: x86_64-unknown-linux-gnu | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| rust-version: '1.83' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies for Linux | |
| if: runner.os == 'Linux' | |
| run: |- | |
| sudo apt install libssl-dev | |
| - name: Cargo build | |
| env: | |
| MP_RUSTC_TARGET: ${{ matrix.rustc-target }} | |
| run: |- | |
| rustup update ${{ env.rust-version }} && rustup default ${{ env.rust-version }} | |
| rustup target add ${{ matrix.rustc-target }} | |
| cargo ci client | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: target/dist/* | |
| # - name: Distribute | |
| # uses: bxb100/action-upload@main | |
| # with: | |
| # provider: webdav | |
| # provider_options: | | |
| # endpoint=${{ secrets.webdav_endpoint }} | |
| # username=${{ secrets.webdav_username }} | |
| # password=${{ secrets.webdav_password }} | |
| # root=${{ secrets.webdav_root_client }} | |
| # include: 'target/dist/**' |