From 452d0f526868b823de3ae1d2b81b9a68ca5a9b3b Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Thu, 4 Apr 2024 17:30:28 +0200 Subject: [PATCH] ci: install dependencies after checking version number This way the workflow fail faster if the version number is incorrect. --- .github/workflows/release.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index afe5c0f71..c25e2f008 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -40,14 +40,6 @@ jobs: - name: Checkout sources uses: actions/checkout@v4 - - name: Install dependencies - id: vcpkg - uses: johnwason/vcpkg-action@v6 - with: - pkgs: openssl - triplet: ${{ matrix.vcpkg_openssl_triplet }} - token: ${{ github.token }} - - name: Install Rust toolchain uses: dtolnay/rust-toolchain@master with: @@ -62,6 +54,14 @@ jobs: exit 1 fi + - name: Install dependencies + id: vcpkg + uses: johnwason/vcpkg-action@v6 + with: + pkgs: openssl + triplet: ${{ matrix.vcpkg_openssl_triplet }} + token: ${{ github.token }} + - name: Build run: cargo build --bin yr --profile release-lto --target ${{ matrix.target }} ${{ matrix.args }} env: