Updated config.yml

This commit is contained in:
Core 2022-04-30 15:42:52 +01:00
parent 489ebbc31d
commit 79e6907b9b

View file

@ -4,7 +4,7 @@ executors:
cider-ci: cider-ci:
docker: docker:
- image: circleci/node:16 - image: circleci/node:16
working_directory: ~/Cider working_directory: /tmp
orbs: # adds orbs to your configuration orbs: # adds orbs to your configuration
jira: circleci/jira@1.0.5 # invokes the Jira orb, making its commands accessible jira: circleci/jira@1.0.5 # invokes the Jira orb, making its commands accessible
@ -14,47 +14,48 @@ jobs:
prepare-build: prepare-build:
executor: cider-ci executor: cider-ci
steps: steps:
- checkout - run: ls -la
- run: # - checkout
name: Set App Version # - run:
command: echo "export APP_VERSION=$(grep '"version":.*' package.json | cut -d '"' -f 4 | head -1)" >> $BASH_ENV # name: Set App Version
- run: # command: echo "export APP_VERSION=$(grep '"version":.*' package.json | cut -d '"' -f 4 | head -1)" >> $BASH_ENV
name: Update Package Managers # - run:
command: sudo npm update -g npm yarn # name: Update Package Managers
- restore_cache: # command: sudo npm update -g npm yarn
name: Restore Yarn Package Cache # - restore_cache:
keys: # name: Restore Yarn Package Cache
- yarn-packages-{{ checksum "cider.lock" }} # keys:
- run: # - yarn-packages-{{ checksum "cider.lock" }}
name: Install Dependencies # - run:
command: yarn install --frozen-lockfile --cache-folder ~/.cache/yarn # name: Install Dependencies
- save_cache: # command: yarn install --frozen-lockfile --cache-folder ~/.cache/yarn
name: Save Yarn Package Cache # - save_cache:
key: yarn-packages-{{ checksum "cider.lock" }} # name: Save Yarn Package Cache
paths: # key: yarn-packages-{{ checksum "cider.lock" }}
- ~/.cache/yarn # paths:
- run: # - ~/.cache/yarn
name: Install system build dependencies # - run:
command: | # name: Install system build dependencies
sudo apt-get update -y # command: |
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg # sudo apt-get update -y
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null # curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
sudo apt-get install -y dpkg fakeroot wine64 # echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo dpkg --add-architecture i386 # sudo apt-get install -y dpkg fakeroot wine64
sudo apt-get update -y # sudo dpkg --add-architecture i386
sudo apt-get install -y wine32 # sudo apt-get update -y
sudo apt install -y gh # sudo apt-get install -y wine32
- run: # sudo apt install -y gh
name: Fix Versioning and Add Channel # - run:
command: yarn circle:script # name: Fix Versioning and Add Channel
- run: # command: yarn circle:script
name: TypeScript Compile # - run:
command: yarn build # name: TypeScript Compile
# command: yarn build
# Persist the specified paths (workspace/echo-output) into the workspace for use in downstream job. # Persist the specified paths (workspace/echo-output) into the workspace for use in downstream job.
- persist_to_workspace: - persist_to_workspace:
# Must be an absolute path, or relative path from working_directory. This is a directory on the container which is # Must be an absolute path, or relative path from working_directory. This is a directory on the container which is
# taken to be the root directory of the workspace. # taken to be the root directory of the workspace.
root: . root: /tmp
# Must be relative path from root # Must be relative path from root
paths: paths:
- Cider - Cider
@ -63,7 +64,7 @@ jobs:
executor: cider-ci executor: cider-ci
steps: steps:
- attach_workspace: - attach_workspace:
at: ~/Cider at: /tmp/Cider
- run: - run:
name: Generate Builds (Windows) name: Generate Builds (Windows)
command: yarn electron-builder -w --x64 -p never command: yarn electron-builder -w --x64 -p never
@ -74,7 +75,7 @@ jobs:
executor: cider-ci executor: cider-ci
steps: steps:
- attach_workspace: - attach_workspace:
at: ~/Cider at: /tmp/Cider
- run: - run:
name: Generate Builds (Linux) name: Generate Builds (Linux)
command: yarn electron-builder -l -p never command: yarn electron-builder -l -p never
@ -85,7 +86,7 @@ jobs:
executor: cider-ci executor: cider-ci
steps: steps:
- attach_workspace: - attach_workspace:
at: ~/Cider at: /tmp/Cider
- run: - run:
name: Generate Builds (Winget) name: Generate Builds (Winget)
command: yarn electron-builder --win -c winget.json -p never command: yarn electron-builder --win -c winget.json -p never
@ -96,23 +97,23 @@ jobs:
executor: cider-ci executor: cider-ci
steps: steps:
- attach_workspace: - attach_workspace:
at: ~/Cider at: /tmp/Cider
- run: - run:
name: Move Build Files name: Move Build Files
command: | command: |
mkdir ~/Cider/dist/artifacts/ mkdir /tmp/Cider/dist/artifacts/
mv ~/Cider/dist/*.exe ~/Cider/dist/artifacts mv /tmp/Cider/dist/*.exe /tmp/Cider/dist/artifacts
mv ~/Cider/dist/*.deb ~/Cider/dist/artifacts mv /tmp/Cider/dist/*.deb /tmp/Cider/dist/artifacts
mv ~/Cider/dist/*.AppImage ~/Cider/dist/artifacts mv /tmp/Cider/dist/*.AppImage /tmp/Cider/dist/artifacts
mv ~/Cider/dist/*.snap ~/Cider/dist/artifacts mv /tmp/Cider/dist/*.snap /tmp/Cider/dist/artifacts
mv ~/Cider/dist/*.yml ~/Cider/dist/artifacts mv /tmp/Cider/dist/*.yml /tmp/Cider/dist/artifacts
mv ~/Cider/dist/*.blockmap ~/Cider/dist/artifacts mv /tmp/Cider/dist/*.blockmap /tmp/Cider/dist/artifacts
- store_artifacts: - store_artifacts:
path: ~/Cider/dist/artifacts path: /tmp/Cider/dist/artifacts
- run: - run:
name: Publish Release name: Publish Release
command: | command: |
gh release create "v${APP_VERSION}.${CIRCLE_BUILD_NUM}" --title "Cider Version ${APP_VERSION} - Build ${CIRCLE_BUILD_NUM} (${CIRCLE_BRANCH})" --generate-notes -R ciderapp/cider-releases ~/Cider/dist/artifacts/*.deb ~/Cider/dist/artifacts/*.AppImage ~/Cider/dist/artifacts/*.snap ~/Cider/dist/artifacts/*.exe ~/Cider/dist/artifacts/*.yml ~/Cider/dist/artifacts/*.blockmap gh release create "v${APP_VERSION}.${CIRCLE_BUILD_NUM}" --title "Cider Version ${APP_VERSION} - Build ${CIRCLE_BUILD_NUM} (${CIRCLE_BRANCH})" --generate-notes -R ciderapp/cider-releases /tmp/Cider/dist/artifacts/*.deb /tmp/Cider/dist/artifacts/*.AppImage /tmp/Cider/dist/artifacts/*.snap /tmp/Cider/dist/artifacts/*.exe /tmp/Cider/dist/artifacts/*.yml /tmp/Cider/dist/artifacts/*.blockmap
# Orchestrate our job run sequence # Orchestrate our job run sequence
workflows: workflows: