stuff
This commit is contained in:
parent
6ad53debe1
commit
6653f10283
8 changed files with 17 additions and 10219 deletions
|
@ -7,7 +7,6 @@ executors:
|
|||
working_directory: ~/Cider
|
||||
|
||||
orbs: # Add orbs to your configuration
|
||||
jira: circleci/jira@1.0.5 # invokes the Jira orb, making its commands accessible
|
||||
gh: circleci/github-cli@2.1
|
||||
# The jobs for this project
|
||||
jobs:
|
||||
|
@ -15,43 +14,20 @@ jobs:
|
|||
executor: cider-ci
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Install and Configure PNPM
|
||||
command: |
|
||||
sudo npm i -g pnpm
|
||||
pnpm config set store-dir ~/.pnpm-store
|
||||
- run:
|
||||
name: Fetch Application Version
|
||||
command: ./resources/version.sh || true
|
||||
- restore_cache:
|
||||
key: dependency-cache-{{ checksum "pnpm-lock.yaml" }}-{{ checksum "package.json" }}
|
||||
# - run:
|
||||
# name: Clear cache (only if CI fails uncomment this)
|
||||
# command: |
|
||||
# rm -rf ~/.pnpm-store || true
|
||||
# rm -rf node_modules || true
|
||||
- run:
|
||||
name: Clear node_airtunes2 cache
|
||||
command: rm -rf ~/.pnpm-store/tmp/_tmp_1469292_a6751613e03842bf2a6fa9a4b21c3e28 || true
|
||||
- run:
|
||||
name: Initialize Submodules
|
||||
command: git submodule update --init --recursive
|
||||
- run:
|
||||
name: Install Node Dependencies
|
||||
command: pnpm install --frozen-lockfile
|
||||
command: npm run bootstrap
|
||||
- run:
|
||||
name: TypeScript Compile
|
||||
command: pnpm run build
|
||||
- save_cache:
|
||||
key: dependency-cache-{{ checksum "pnpm-lock.yaml" }}-{{ checksum "package.json" }}
|
||||
paths:
|
||||
- node_modules
|
||||
- ~/.pnpm-store
|
||||
command: npm run build
|
||||
- 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: .
|
||||
# Must be relative path from root
|
||||
paths:
|
||||
- .git
|
||||
- src
|
||||
|
@ -59,7 +35,7 @@ jobs:
|
|||
- build
|
||||
- resources
|
||||
- package.json
|
||||
- winget.json # winget.json is a file that is generated by the winget package manager
|
||||
- winget.json
|
||||
- LICENSE
|
||||
|
||||
build-linux:
|
||||
|
@ -70,9 +46,7 @@ jobs:
|
|||
at: ~/project
|
||||
- run:
|
||||
name: Generate Builds (Linux)
|
||||
command: yarn electron-builder -l -p never
|
||||
post-steps:
|
||||
- jira/notify
|
||||
command: h electron-builder -l -p never
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
|
@ -90,8 +64,6 @@ jobs:
|
|||
- run:
|
||||
name: Generate Builds (Windows)
|
||||
command: yarn electron-builder -w --x64 -p never
|
||||
post-steps:
|
||||
- jira/notify
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
|
@ -108,8 +80,6 @@ jobs:
|
|||
- run:
|
||||
name: Generate Builds (Winget)
|
||||
command: yarn electron-builder --win -c winget.json -p never
|
||||
post-steps:
|
||||
- jira/notify
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue