Skip to content

Commit

Permalink
fix: foundry installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Jun 3, 2024
1 parent f8ca496 commit da20339
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/infrstructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ jobs:
check-latest: true
cache-dependency-path: go.work.sum

- name: Setup Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install Required Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
Expand Down Expand Up @@ -236,7 +239,7 @@ jobs:
curl -X POST -H 'Content-type: application/json' --data "${PAYLOAD}" "${{ secrets.SLACK_CI_CHANNEL_WEBHOOK_URL }}"
- name: Initialize Debug Shell
if: ${{ env.IS_MANUAL_DEPLOYMENT == 'false' && failure() }}
if: ${{ failure() }}
run: |
TUNSHELL_KEYS=$(curl -sSf -X POST https://eu.relay.tunshell.com/api/sessions)
DEBUG_SHELL="sh <(curl -sSf https://lets.tunshell.com/init.sh) L $(echo ${TUNSHELL_KEYS} | jq -r .peer2_key) \${TUNSHELL_SECRET} eu.relay.tunshell.com"
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/nomad/playbooks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
DESTINATION_DIR="{{ goreleaser_dist_dir }}/{{ item.name }}" && mkdir -p ${DESTINATION_DIR}
if [ "{{ item.name }}" == "contracts" ]; then
cd ./{{ item.path }}
forge build
forge build --via-ir
tar -czvf "${DESTINATION_DIR}/contracts_{{ version }}.tar.gz" ./out ./deployer_keystore
elif [ "{{ item.name }}" == "faucet-keystore" ]; then
tar -czvf "${DESTINATION_DIR}/faucet_keystore_{{ version }}.tar.gz" -C ./{{ item.path }} .
Expand Down
6 changes: 4 additions & 2 deletions infrastructure/nomad/playbooks/init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@
state: present

- name: Install Foundry Tools
shell: |
curl -L https://foundry.paradigm.xyz | bash
ansible.builtin.shell: |
curl --location https://foundry.paradigm.xyz | bash
~/.foundry/bin/foundryup
become: true
become_user: "{{ hostvars[inventory_hostname].ansible_user }}"

- name: Install Python Web3 Package
pip:
Expand Down

0 comments on commit da20339

Please sign in to comment.