From ac0240d9539258de13556cf46e1cbb285522fc83 Mon Sep 17 00:00:00 2001 From: Jisu-Woniu <31986081+Jisu-Woniu@users.noreply.github.com> Date: Sun, 31 Mar 2024 03:41:24 +0800 Subject: [PATCH] =?UTF-8?q?ci(actions):=20=F0=9F=92=9A=20reorder=20steps?= =?UTF-8?q?=20to=20ensure=20wget=20is=20presented?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/building.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/building.yml b/.github/workflows/building.yml index 98c61e5..5790c25 100644 --- a/.github/workflows/building.yml +++ b/.github/workflows/building.yml @@ -14,6 +14,11 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get upgrade -y + sudo apt-get install -y wget clang - name: Setup Rust toolchain uses: moonrepo/setup-rust@v1 with: @@ -21,11 +26,6 @@ jobs: bins: cargo-hack, cargo-deny env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Install dependencies - run: | - sudo apt-get update - sudo apt-get upgrade -y - sudo apt-get install -y wget clang - name: Setup mold uses: rui314/setup-mold@v1 - name: Setup buf @@ -57,6 +57,10 @@ jobs: container: debian:bullseye steps: - uses: actions/checkout@v4 + - name: Install dependencies + run: | + apt-get update + apt-get install -y sudo wget lintian clang - name: Setup Rust toolchain uses: moonrepo/setup-rust@v1 with: @@ -64,10 +68,6 @@ jobs: bins: cargo-deb env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Install dependencies - run: | - sudo apt-get update - sudo apt-get install -y wget lintian clang - name: Setup mold uses: rui314/setup-mold@v1 - name: Setup buf @@ -97,6 +97,9 @@ jobs: container: fedora:38 steps: - uses: actions/checkout@v4 + - name: Install dependencies + run: | + sudo dnf install -y clang mold protobuf-compiler - name: Setup Rust toolchain uses: moonrepo/setup-rust@v1 with: @@ -104,9 +107,6 @@ jobs: bins: cargo-generate-rpm env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Install dependencies - run: | - sudo dnf install -y wget clang mold protobuf-compiler - name: Setup buf uses: bufbuild/buf-setup-action@v1 with: