Hey
My issue is very similar to this one: Failing to upload artifacts from symbolic link directories
But for me, the issue persists and I do not have a clue where to look for the issue.
The error message I am getting is the following:
(one of the many messages)
FAILED with error BodyHashError: failed to compute body hashes
caused by: read /Users/distiller/repo/dist/mac/my.app/Contents/Frameworks/Squirrel.framework/Versions/Current: is a directory
and this is how my circleci config looks like.
# Javascript Node CircleCI 2.0 configuration file.
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
version: 2
references:
workspace: &workspace ~/repo
container_config: &container_config
docker:
- image: circleci/node:8.15.1
working_directory: *workspace
win_config: &win_config
docker:
- image: electronuserland/builder:wine
environment:
TARGET_ARCH: x64
working_directory: *workspace
mac_config: &mac_config
macos:
xcode: "10.1.0"
working_directory: *workspace
jobs:
build:
<<: *container_config
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: sudo apt-get -y update
- run: sudo apt-get -y install libudev-dev libusb-1.0-0-dev
- run: yarn install
- run: chmod -R 777 ~/repo
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
test:
<<: *container_config
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: sudo apt-get -y update
- run: sudo apt-get -y install libgtk-3-0 libxss1 libgconf-2-4 libnss3 libasound2
- run: sudo yarn global add yarn@1.12.3
- run: yarn test
- run: yarn codecov
store_artifacts:
- path: artifacts
- destination: yarnpkg
deploy_win:
<<: *win_config
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: dpkg --add-architecture i386
- run: apt-get -y update
- run: apt-get -y install libudev-dev libudev-dev:i386 libusb-1.0-0-dev libusb-1.0-0-dev:i386
- run: yarn install
- run: yarn dist --win --x64 --ia32
- store_artifacts:
path: dist
destination: build
deploy_linux:
<<: *container_config
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: sudo yarn global add yarn@1.12.3
- run: yarn install
- run: yarn dist --linux
- store_artifacts:
path: dist
destination: build
deploy_mac:
<<: *mac_config
steps:
- checkout
- restore_cache:
keys:
- v3-dependencies-{{ checksum "package.json" }}
- v3-dependencies-
- run: yarn install
- run: yarn dist --mac
- store_artifacts:
path: dist/
destination: build/
workflows:
version: 2
build_test:
jobs:
- build
- test:
requires:
- build
deploy:
jobs:
- deploy_mac
- deploy_win:
filters:
branches:
ignore: /.*/
tags:
only: /[v][0-9]+(\.[0-9]+)+.*/
- deploy_linux:
filters:
branches:
ignore: /.*/
tags:
only: /[v][0-9]+(\.[0-9]+)+.*/
# - deploy_mac:
# filters:
# branches:
# ignore: /.*/
# tags:
# only: /[0-9]+(\.[0-9]+)+.*/
We’re trying to achieve the ability to build/code sign and upload windows/linux and macos artifacts to github, but the issues arise with the deploy_mac job when uploading the artifacts.
We’re using electron.builder as it’s an electron application to handle the building/signing of the artifacts