Skip to content

Commit

Permalink
chore: simplify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason I committed Apr 24, 2024
1 parent bd2b565 commit 8ea1601
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/check-interface-spec-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,9 @@ jobs:
curl -O "https://download.dfinity.systems/ic/$latest_sha/binaries/x86_64-linux/sandbox_launcher.gz"
curl -O "https://download.dfinity.systems/ic/$latest_sha/binaries/x86_64-linux/sns.gz"
- name: Install IC SDK
- name: Provision environment
run: |
wget --output-document install-dfx.sh "https://raw.githubusercontent.com/dfinity/sdk/dfxvm-install-script/install.sh"
DFX_VERSION=${DFX_VERSION:=0.19.0} DFXVM_INIT_YES=true bash install-dfx.sh
rm install-dfx.sh
echo "$HOME/.local/share/dfx/bin" >> $GITHUB_PATH
source "$HOME/.local/share/dfx/env"
.github/workflows/provision-linux.sh
- name: Overwrite artifacts in dfx cache
run: |
Expand All @@ -85,10 +81,6 @@ jobs:
gzip -d sns.gz
mv sns $(dfx cache show)
- name: Skip cache install
run: |
export "skip_dfx_cache_install=1"
- name: Build and deploy all examples
run: |
.github/workflows/hosting-photo-storage-example.test.sh
6 changes: 1 addition & 5 deletions .github/workflows/provision-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ DFX_VERSION=${DFX_VERSION:=0.19.0} DFXVM_INIT_YES=true bash install-dfx.sh
rm install-dfx.sh
echo "$HOME/.local/share/dfx/bin" >> $GITHUB_PATH
source "$HOME/.local/share/dfx/env"
if [[ -z "${skip_dfx_cache_install}" ]]; then
echo "Skipping dfx cache install"
else
dfx cache install
fi
dfx cache install

# Install ic-repl
version=0.1.2
Expand Down

0 comments on commit 8ea1601

Please sign in to comment.