chore: migrate motoko/basic_bitcoin to icp-cli #36
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: basic_bitcoin | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| paths: | |
| - motoko/basic_bitcoin/** | |
| - .github/workflows/basic_bitcoin.yml | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| motoko-basic_bitcoin: | |
| # Run directly on the host (no container:) so that icp-cli can bind-mount | |
| # the status directory into our custom Docker image. When icp-cli runs inside | |
| # a container, the tmpdir it creates is invisible to the host Docker daemon. | |
| runs-on: ubuntu-24.04 | |
| env: | |
| ICP_CLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Install icp-cli, ic-wasm and mops | |
| run: npm install -g @icp-sdk/icp-cli @icp-sdk/ic-wasm ic-mops | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0 | |
| - name: Build network launcher image | |
| uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0 | |
| with: | |
| context: motoko/basic_bitcoin | |
| push: false | |
| load: true | |
| tags: icp-cli-network-launcher-bitcoin:latest | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Deploy and test | |
| working-directory: motoko/basic_bitcoin | |
| run: | | |
| icp network start -d | |
| icp deploy --cycles 30t | |
| make test |