Skip to content

Commit

Permalink
Skip building godwoken-scripts for now
Browse files Browse the repository at this point in the history
  • Loading branch information
blckngm committed Jul 19, 2023
1 parent 9048b48 commit a207eb3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,20 +98,21 @@ jobs:
working-directory: build/clerkb
run: yarn && make all-via-docker

- name: Cache of component.godwoken-scripts
id: godwoken-scripts-cache
uses: actions/cache@v3
with:
path: |
build/godwoken-scripts/build/release/*
build/godwoken-scripts/c/build/*-generator
build/godwoken-scripts/c/build/*-validator
build/godwoken-scripts/c/build/account_locks/*
key: component.godwoken-scripts-${{ steps.prepare.outputs.godwoken-scripts-sha1 }}
- name: Build godwoken-scripts
if: steps.godwoken-scripts-cache.outputs.cache-hit != 'true'
working-directory: build/godwoken-scripts
run: cd c && make && cd .. && capsule build --release --debug-output
# Skip building godwoken-scripts for now.
# - name: Cache of component.godwoken-scripts
# id: godwoken-scripts-cache
# uses: actions/cache@v3
# with:
# path: |
# build/godwoken-scripts/build/release/*
# build/godwoken-scripts/c/build/*-generator
# build/godwoken-scripts/c/build/*-validator
# build/godwoken-scripts/c/build/account_locks/*
# key: component.godwoken-scripts-${{ steps.prepare.outputs.godwoken-scripts-sha1 }}
# - name: Build godwoken-scripts
# if: steps.godwoken-scripts-cache.outputs.cache-hit != 'true'
# working-directory: build/godwoken-scripts
# run: cd c && make && cd .. && capsule build --release --debug-output

- name: Cache of component.godwoken-polyjuice
id: godwoken-polyjuice-cache
Expand Down
12 changes: 7 additions & 5 deletions Dockerfile.fast
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ RUN mkdir -p /ckb && cd /ckb \
COPY build/clerkb/build/debug/poa /scripts/clerkb/
COPY build/clerkb/build/debug/state /scripts/clerkb/

# /scripts/godwoken-scripts
COPY build/godwoken-scripts/build/release/* /scripts/godwoken-scripts/
COPY build/godwoken-scripts/c/build/*-generator /scripts/godwoken-scripts/
COPY build/godwoken-scripts/c/build/*-validator /scripts/godwoken-scripts/
COPY build/godwoken-scripts/c/build/account_locks/* /scripts/godwoken-scripts/
# Copy from previous image because godwoken-scripts cannot be built as is.
COPY --from=ghcr.io/nervosnetwork/godwoken-prebuilds:v0.10.7 /scripts/godwoken-scripts /scripts/godwoken-scripts
# # /scripts/godwoken-scripts
# COPY build/godwoken-scripts/build/release/* /scripts/godwoken-scripts/
# COPY build/godwoken-scripts/c/build/*-generator /scripts/godwoken-scripts/
# COPY build/godwoken-scripts/c/build/*-validator /scripts/godwoken-scripts/
# COPY build/godwoken-scripts/c/build/account_locks/* /scripts/godwoken-scripts/

# /scripts/godwoken-polyjuice
COPY build/godwoken-polyjuice/build/*generator* /scripts/godwoken-polyjuice/
Expand Down

0 comments on commit a207eb3

Please sign in to comment.