Updated config.yml
This commit is contained in:
parent
1f5982f50d
commit
18cd463579
1 changed files with 34 additions and 62 deletions
|
@ -1,50 +1,20 @@
|
||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
executors:
|
executors:
|
||||||
my-executor:
|
cider-ci:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:16
|
- image: circleci/node:16
|
||||||
working_directory: ~/Cider
|
working_directory: /tmp/cider
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
# The jobs for this project
|
# The jobs for this project
|
||||||
jobs:
|
jobs:
|
||||||
flow:
|
|
||||||
executor: my-executor
|
|
||||||
steps:
|
|
||||||
- run: mkdir -p workspace
|
|
||||||
- run: echo "Hello, world!" > workspace/echo-output
|
|
||||||
|
|
||||||
# Persist the specified paths (workspace/echo-output) into the workspace for use in downstream job.
|
|
||||||
- persist_to_workspace:
|
|
||||||
# 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.
|
|
||||||
root: workspace
|
|
||||||
# Must be relative path from root
|
|
||||||
paths:
|
|
||||||
- echo-output
|
|
||||||
|
|
||||||
downstream:
|
|
||||||
executor: my-executor
|
|
||||||
steps:
|
|
||||||
- attach_workspace:
|
|
||||||
# Must be absolute path or relative path from working_directory
|
|
||||||
at: /tmp/workspace
|
|
||||||
|
|
||||||
- run: |
|
|
||||||
if [[ `cat /tmp/workspace/echo-output` == "Hello, world!" ]]; then
|
|
||||||
echo "It worked!";
|
|
||||||
else
|
|
||||||
echo "Nope!"; exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
prepare-build:
|
prepare-build:
|
||||||
working_directory: ~/Cider
|
executor: cider-ci
|
||||||
docker:
|
|
||||||
- image: circleci/node:16
|
|
||||||
steps:
|
steps:
|
||||||
|
- run: mkdir -p Cider
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: Set App Version
|
name: Set App Version
|
||||||
|
@ -81,12 +51,20 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: TypeScript Compile
|
name: TypeScript Compile
|
||||||
command: yarn build
|
command: yarn build
|
||||||
|
# Persist the specified paths (workspace/echo-output) into the workspace for use in downstream job.
|
||||||
|
- persist_to_workspace:
|
||||||
|
# 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.
|
||||||
|
root: workspace
|
||||||
|
# Must be relative path from root
|
||||||
|
paths:
|
||||||
|
- echo-output
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
working_directory: ~/Cider
|
executor: cider-ci
|
||||||
docker:
|
|
||||||
- image: circleci/node:16
|
|
||||||
steps:
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
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
|
||||||
|
@ -94,10 +72,10 @@ jobs:
|
||||||
- jira/notify
|
- jira/notify
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
working_directory: ~/Cider
|
executor: cider-ci
|
||||||
docker:
|
|
||||||
- image: circleci/node:16
|
|
||||||
steps:
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
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
|
||||||
|
@ -105,10 +83,10 @@ jobs:
|
||||||
- jira/notify
|
- jira/notify
|
||||||
|
|
||||||
build-winget:
|
build-winget:
|
||||||
working_directory: ~/Cider
|
executor: cider-ci
|
||||||
docker:
|
|
||||||
- image: circleci/node:16
|
|
||||||
steps:
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
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
|
||||||
|
@ -116,36 +94,30 @@ jobs:
|
||||||
- jira/notify
|
- jira/notify
|
||||||
|
|
||||||
release:
|
release:
|
||||||
working_directory: ~/Cider
|
executor: cider-ci
|
||||||
docker:
|
|
||||||
- image: circleci/node:16
|
|
||||||
steps:
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
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:
|
||||||
btd:
|
build_and_release:
|
||||||
jobs:
|
|
||||||
- flow
|
|
||||||
- downstream:
|
|
||||||
requires:
|
|
||||||
- flow
|
|
||||||
build_and_test:
|
|
||||||
jobs:
|
jobs:
|
||||||
- prepare-build
|
- prepare-build
|
||||||
- build-windows:
|
- build-windows:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue