Skip to content

Commit

Permalink
give root bindings write permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ricomateo committed Jan 24, 2025
1 parent da8aa35 commit 3de8f32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:
- name: Generate new bindings
run: |
docker run --rm -v "$(PWD):$(PWD)" -w "$(PWD)" \
ghcr.io/foundry-rs/foundry:v0.3.0 \
-c 'git config --global --add safe.directory /home/runner/work/eigensdk-rs/eigensdk-rs && \
apk add g++ && apk add make && whoami && ls -l crates/utils/src/core && make bindings_host'
# Give root write permissions
setfacl -m u:root:rwx crates/utils/src/
make bindings
cargo fmt
- name: Compare existing and new bindings
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ bindings_host:

@echo "Bindings generated"

username=$(shell whoami)

bindings:
@echo "Starting Docker container..."
@docker run --rm -v "$(PWD):$(PWD)" -w "$(PWD)" \
ghcr.io/foundry-rs/foundry:v0.3.0 \
-c 'git config --global --add safe.directory /home/runner/work/eigensdk-rs/eigensdk-rs && \
apk add g++ && apk add make && whoami && make bindings_host'
-c 'git config --global --add safe.directory /home/runner/work/eigensdk-rs/eigensdk-rs \
apk add g++ && apk add make && make bindings_host'

0 comments on commit 3de8f32

Please sign in to comment.