Skip to content

Commit

Permalink
ci: use dfinity/setup-dfx to install dfx
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Nowak-Liebiediew committed Nov 1, 2023
1 parent 39c7c2c commit e4692ff
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/actions/setup-dfx/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit e4692ff

Please sign in to comment.