Commit b0256d7120
Unregistered key
Layout: unified · split
.github/workflows/ci.yml +13 −34
| @@ -9,25 +9,6 @@ on: | ||
| 9 | 9 | name: CI |
| 10 | 10 | |
| 11 | 11 | jobs: |
| 12 | clippy_check: | |
| 13 | runs-on: ubuntu-latest | |
| 14 | steps: | |
| 15 | - name: Checkout code | |
| 16 | uses: actions/checkout@v3 | |
| 17 | with: | |
| 18 | submodules: true | |
| 19 | - name: Install Rust | |
| 20 | uses: actions-rs/toolchain@v1 | |
| 21 | with: | |
| 22 | toolchain: stable | |
| 23 | components: clippy | |
| 24 | override: true | |
| 25 | - name: Check Clippy | |
| 26 | uses: actions-rs/clippy-check@v1 | |
| 27 | with: | |
| 28 | token: ${{ secrets.GITHUB_TOKEN }} | |
| 29 | toolchain: stable | |
| 30 | args: | |
| 31 | 12 | test: |
| 32 | 13 | strategy: |
| 33 | 14 | matrix: |
| @@ -38,12 +19,12 @@ jobs: | ||
| 38 | 19 | uses: actions/checkout@v3 |
| 39 | 20 | with: |
| 40 | 21 | submodules: true |
| 41 | - name: Install Rust | |
| 42 | uses: actions-rs/toolchain@v1 | |
| 22 | - name: Install Rust (1.66 w/ clippy) | |
| 23 | uses: dtolnay/rust-toolchain@1.66 | |
| 43 | 24 | with: |
| 44 | toolchain: nightly | |
| 45 | override: true | |
| 46 | components: rustfmt, clippy | |
| 25 | components: clippy | |
| 26 | - name: Install Rust (nightly w/ rustfmt) | |
| 27 | run: rustup toolchain install nightly --component rustfmt | |
| 47 | 28 | - name: Cache cargo registry |
| 48 | 29 | uses: actions/cache@v3 |
| 49 | 30 | with: |
| @@ -55,19 +36,17 @@ jobs: | ||
| 55 | 36 | path: target |
| 56 | 37 | key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }} |
| 57 | 38 | - name: Check formatting |
| 58 | uses: actions-rs/cargo@v1 | |
| 39 | run: cargo +nightly fmt --all -- --check | |
| 40 | - name: Check Clippy | |
| 41 | if: matrix.platform == 'ubuntu-latest' | |
| 42 | uses: giraffate/clippy-action@v1 | |
| 59 | 43 | with: |
| 60 | command: fmt | |
| 61 | args: --all -- --check | |
| 44 | github_token: ${{ secrets.GITHUB_TOKEN }} | |
| 45 | reporter: 'github-check' | |
| 62 | 46 | - name: Run tests |
| 63 | uses: actions-rs/cargo@v1 | |
| 64 | with: | |
| 65 | command: test | |
| 47 | run: cargo test | |
| 66 | 48 | - name: Build artifacts |
| 67 | uses: actions-rs/cargo@v1 | |
| 68 | with: | |
| 69 | command: build | |
| 70 | args: '--release' | |
| 49 | run: cargo build --release | |
| 71 | 50 | - name: Upload artifacts |
| 72 | 51 | uses: actions/upload-artifact@master |
| 73 | 52 | with: |
src/windows/room/chat.rs +1 −1
| @@ -489,7 +489,7 @@ impl ChatState { | ||
| 489 | 489 | .map_err(IambError::from)?; |
| 490 | 490 | let mime = mime::IMAGE_PNG; |
| 491 | 491 | |
| 492 | let name = Cow::from(format!("Clipboard.png")); | |
| 492 | let name = "Clipboard.png"; | |
| 493 | 493 | let config = AttachmentConfig::new(); |
| 494 | 494 | |
| 495 | 495 | let resp = room |