Commit b0256d7120

b0256d712005a430b74afbb5b8b859ca7a1b05bc

parent: 0f870367b3

Unregistered key

Ulyssa <git@ulyssa.dev> · 2023-05-29 04:37 UTC

Replace GitHub actions using deprecated features (#114)

Layout: unified · split

.github/workflows/ci.yml +13 −34
@@ -9,25 +9,6 @@ on:
99name: CI
1010
1111jobs:
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:
3112 test:
3213 strategy:
3314 matrix:
@@ -38,12 +19,12 @@ jobs:
3819 uses: actions/checkout@v3
3920 with:
4021 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
4324 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
4728 - name: Cache cargo registry
4829 uses: actions/cache@v3
4930 with:
@@ -55,19 +36,17 @@ jobs:
5536 path: target
5637 key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
5738 - 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
5943 with:
60 command: fmt
61 args: --all -- --check
44 github_token: ${{ secrets.GITHUB_TOKEN }}
45 reporter: 'github-check'
6246 - name: Run tests
63 uses: actions-rs/cargo@v1
64 with:
65 command: test
47 run: cargo test
6648 - name: Build artifacts
67 uses: actions-rs/cargo@v1
68 with:
69 command: build
70 args: '--release'
49 run: cargo build --release
7150 - name: Upload artifacts
7251 uses: actions/upload-artifact@master
7352 with:
src/windows/room/chat.rs +1 −1
@@ -489,7 +489,7 @@ impl ChatState {
489489 .map_err(IambError::from)?;
490490 let mime = mime::IMAGE_PNG;
491491
492 let name = Cow::from(format!("Clipboard.png"));
492 let name = "Clipboard.png";
493493 let config = AttachmentConfig::new();
494494
495495 let resp = room