Jonathan Kelley пре 1 година
родитељ
комит
0c684261c9
1 измењених фајлова са 9 додато и 10 уклоњено
  1. 9 10
      .github/workflows/main.yml

+ 9 - 10
.github/workflows/main.yml

@@ -44,7 +44,7 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - run: sudo apt-get update
-      - run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev
+      - run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev
       - uses: dtolnay/rust-toolchain@stable
       - uses: mozilla-actions/sccache-action@v0.0.3
       - uses: ilammy/setup-nasm@v1
@@ -72,10 +72,11 @@ jobs:
     name: Rustfmt
     runs-on: ubuntu-latest
     steps:
+      - uses: ilammy/setup-nasm@v1
       - uses: dtolnay/rust-toolchain@stable
+        with:
+          components: rustfmt
       - uses: mozilla-actions/sccache-action@v0.0.3
-      - uses: ilammy/setup-nasm@v1
-      - run: rustup component add rustfmt
       - uses: actions/checkout@v4
       - run: cargo fmt --all -- --check
 
@@ -86,10 +87,11 @@ jobs:
     steps:
       - run: sudo apt-get update
       - run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev
+      - uses: ilammy/setup-nasm@v1
       - uses: dtolnay/rust-toolchain@stable
+        with:
+          components: rustfmt, clippy
       - uses: mozilla-actions/sccache-action@v0.0.3
-      - uses: ilammy/setup-nasm@v1
-      - run: rustup component add clippy
       - uses: actions/checkout@v4
       - run: cargo clippy --workspace --examples --tests -- -D warnings
 
@@ -136,7 +138,6 @@ jobs:
         working-directory: ./playwright-tests
     steps:
       # Do our best to cache the toolchain and node install steps
-      - uses: actions/checkout@v4
       - uses: ilammy/setup-nasm@v1
       - uses: actions/setup-node@v4
         with:
@@ -159,6 +160,7 @@ jobs:
       #   with:
       #     command: install
       #     args: --path packages/cli
+      - uses: actions/checkout@v4
       - name: Run Playwright tests
         run: npx playwright test
       - uses: actions/upload-artifact@v4
@@ -210,13 +212,13 @@ jobs:
             }
 
     steps:
-      - uses: actions/checkout@v4
       - uses: ilammy/setup-nasm@v1
       - name: install stable
         uses: dtolnay/rust-toolchain@master
         with:
           toolchain: ${{ matrix.platform.toolchain }}
           targets: ${{ matrix.platform.target }}
+          components: rustfmt
 
       - name: Install cross
         if: ${{ matrix.platform.cross == true }}
@@ -227,9 +229,6 @@ jobs:
           workspaces: core -> ../target
           save-if: ${{ matrix.features.key == 'all' }}
 
-      - name: Install rustfmt
-        run: rustup component add rustfmt
-
       - uses: actions/checkout@v4
 
       - name: test