Skip to content

Commit

Permalink
chore: update provision scripts to be compatible with dfxvm
Browse files Browse the repository at this point in the history
  • Loading branch information
ericswanson-dfinity committed Feb 9, 2024
1 parent 781b9e8 commit f9e8771
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/provision-darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ sudo installer -pkg node.pkg -store -target /
rm node.pkg

# Install DFINITY SDK.
curl --location --output install-dfx.sh "https://internetcomputer.org/install.sh"
DFX_VERSION=${DFX_VERSION:=0.16.1} bash install-dfx.sh < <(yes Y)
curl --location --output install-dfx.sh "https://raw.githubusercontent.com/dfinity/sdk/dfxvm-install-script/install.sh"
DFX_VERSION=${DFX_VERSION:=0.16.1} DFXVM_INIT_YES=true bash install-dfx.sh < <(yes Y)
rm install-dfx.sh
dfx cache install
echo "$HOME/Library/Application Support/org.dfinity.dfx/bin" >> $GITHUB_PATH
"$HOME/Library/Application Support/org.dfinity.dfx/bin"/dfx cache install

# Install ic-repl
version=0.1.2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/provision-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ sudo apt-get install --yes nodejs
rm install-node.sh

# Install DFINITY SDK.
wget --output-document install-dfx.sh "https://internetcomputer.org/install.sh"
wget --output-document install-dfx.sh "https://raw.githubusercontent.com/dfinity/sdk/dfxvm-install-script/install.sh"
DFX_VERSION=${DFX_VERSION:=0.16.1} bash install-dfx.sh < <(yes Y)
rm install-dfx.sh
dfx cache install
echo "$HOME/.local/share/dfx/bin" >> $GITHUB_PATH
"$HOME/.local/share/dfx/bin"/dfx cache install

# Install ic-repl
version=0.1.2
Expand Down
7 changes: 4 additions & 3 deletions motoko/encrypted-notes-dapp-vetkd/provision-darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ sudo installer -pkg node.pkg -store -target /
rm node.pkg

# Install DFINITY SDK.
curl --location --output install-dfx.sh "https://internetcomputer.org/install.sh"
DFX_VERSION=${DFX_VERSION:=0.12.0} bash install-dfx.sh < <(yes Y)
curl --location --output install-dfx.sh "https://raw.githubusercontent.com/dfinity/sdk/dfxvm-install-script/install.sh"
DFX_VERSION=${DFX_VERSION:=0.12.0} DFXVM_INIT_YES=true bash install-dfx.sh < <(yes Y)
rm install-dfx.sh
dfx cache install
echo "$HOME/Library/Application Support/org.dfinity.dfx/bin" >> $GITHUB_PATH
"$HOME/Library/Application Support/org.dfinity.dfx/bin"/dfx cache install

# Install ic-repl
version=0.1.2
Expand Down

0 comments on commit f9e8771

Please sign in to comment.