From e4692ff5fca56cfb99650c99466d8a6da4d7572f Mon Sep 17 00:00:00 2001 From: Marcin Nowak-Liebiediew Date: Wed, 1 Nov 2023 14:59:21 +0100 Subject: [PATCH] ci: use `dfinity/setup-dfx` to install `dfx` --- .github/actions/setup-dfx/action.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/actions/setup-dfx/action.yml b/.github/actions/setup-dfx/action.yml index 7bc06749..ac26d69c 100644 --- a/.github/actions/setup-dfx/action.yml +++ b/.github/actions/setup-dfx/action.yml @@ -9,20 +9,10 @@ runs: with: path: /usr/local/bin/dfx key: dfx-cache-${{ env.dfx_version }} - - - name: Install DFX - shell: bash - run: | - if command -v dfx - then - echo "DFX restored from cache" - else - echo "DFX not restored from cache, running install script:" - DFX_VERSION=0.14.2 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)" - fi - echo "DFX version" - dfx --version - + - name: Install dfx + uses: dfinity/setup-dfx@main + with: + dfx-version: "0.14.2" - name: Configure DFX shell: bash run: |