diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 77d1e9a3b5..971162c1aa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,35 @@ on: - main pull_request: # Runs on pull requests to any branch jobs: + install-global-dependencies: + name: Test install global dependencies + runs-on: ubutun-latest + steps: + - uses: actions/checkout@v4 + + - id: get-node-version + uses: ./.github/actions/get_node_version + + - uses: actions/setup-node@v4 + with: + node-version: ${{ steps.get-node-version.outputs.node-version }} + + - name: Install curl + run: sudo apt-get install curl -y + + - id: get-dfx-version + uses: ./.github/actions/get_dfx_version + + - name: Install dfx + run: | + # Install dfx (Note: DFX must be installed before `npx azle` because the azle instalation process requires dfx) + src/build/stable/commands/install_global_dependencies/install_dfx.sh ${{ steps.get-dfx-version.outputs.dfx-version }} + + - name: Install global dependencies + run: | + AZLE_VERBOSE=true npx azle install-global-dependencies --rust --wasi2ic + echo "$HOME/.local/share/dfx/bin" >> $GITHUB_PATH + determine-should-release: if: ${{ startsWith(github.head_ref, 'release--') }} name: Determine if this branch should release