Skip to content

Commit

Permalink
more version debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyNikiforov committed Jul 21, 2024
1 parent 24c20fc commit 0c8aa49
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,23 +240,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: DEBUG Version info BEFORE patch
run: |
ls -la src/foundation
cat src/foundation/__init__.py
- name: Download version info
uses: actions/download-artifact@v4
with:
name: icloudpd-${{github.sha}}-version-info
path: |
src/foundation
- name: DEBUG Version info AFTER patch
run: |
ls -la src/foundation
cat src/foundation/__init__.py
- name: Set up QEMU
if: matrix.platform[1] != 'amd64'
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -295,7 +278,24 @@ jobs:
".cache/root/.cache/pip": "/root/.cache/pip",
".cache/root/.distrib/rust": "/root/.distrib/rust"
}
- name: DEBUG Version info BEFORE patch
run: |
ls -la src/foundation
cat src/foundation/__init__.py
- name: Download version info
uses: actions/download-artifact@v4
with:
name: icloudpd-${{github.sha}}-version-info
path: |
src/foundation
- name: DEBUG Version info AFTER patch
run: |
ls -la src/foundation
cat src/foundation/__init__.py
- name: Build
uses: docker/build-push-action@v6
with:
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ COPY scripts scripts/
COPY binary_dist binary_dist/
COPY pyproject.toml .
COPY src src/
RUN \
echo "DEBUG version info" && \
cat src/foundation/__init__.py
# staticx must be installed after scons - they do not have deps that pip can handle
RUN \
--mount=type=cache,target=/root/.cache/pip,sharing=shared \
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.build-musl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ COPY scripts scripts/
COPY binary_dist binary_dist/
COPY pyproject.toml .
COPY src src/
RUN \
echo "DEBUG version info" && \
cat src/foundation/__init__.py
# staticx must be installed after scons
# staticx gives error: Error relocating /tmp/staticx-pyi-9b5nvfi_/_cffi_backend.cpython-312-x86_64-linux-musl.so: PyNumber_Long: symbol not found
RUN \
Expand Down

0 comments on commit 0c8aa49

Please sign in to comment.