Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 2 additions & 40 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,49 +140,11 @@ jobs:
which wasm-tools
wasm-tools --version

- name: install network launcher
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ !contains(matrix.os, 'windows') }}
run: |
VERSION=v11.0.0
OS=""
ARCH=""

# Map runner.os → release suffix
if [[ "${{ runner.os }}" == "Linux" ]]; then
OS="linux"
elif [[ "${{ runner.os }}" == "macOS" ]]; then
OS="darwin"
else
echo "Unsupported OS: ${{ runner.os }}"
exit 1
fi

# Detect architecture
case "$(uname -m)" in
x86_64) ARCH="x86_64" ;;
arm64|aarch64) ARCH="arm64" ;;
*)
echo "Unsupported architecture: $(uname -m)"
exit 1
;;
esac
PERCENT_VERSION=$(printf '%s' "$VERSION" |jq -sRr @uri)
URL="https://github.com/dfinity/icp-cli-network-launcher/releases/download/${PERCENT_VERSION}/icp-cli-network-launcher-${ARCH}-${OS}-${PERCENT_VERSION}.tar.gz"
DEST="/opt/icp-cli-network-launcher"

echo "Downloading $URL"
curl -L "$URL" -H "Authorization: Bearer ${GITHUB_TOKEN}" -o icp-cli-network-launcher.tar.gz
tar -xzf icp-cli-network-launcher.tar.gz
sudo mv icp-cli-network-launcher-${ARCH}-${OS}-${VERSION} "$DEST"

echo "Installed network launcher to $DEST"
echo "ICP_CLI_NETWORK_LAUNCHER_PATH=$DEST/icp-cli-network-launcher" >> "$GITHUB_ENV"

- name: Run ${{ matrix.test }}
# the macos runners do not support Docker
run: cargo test --test ${{ matrix.test }} -- ${{ contains(matrix.os, 'macos') && '--skip :docker:' || '' }}
env:
ICP_CLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

aggregate:
name: test:required
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Unreleased

* feat: `icp canister migrate-id` - initiate canister ID migration across subnets

# v0.1.0

* feat: `icp canister snapshot` - create, delete, restore, list, download, and upload canister snapshots
Expand Down
Loading
Loading