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