Skip to content

Commit

Permalink
Add uberjar release
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-qwt authored Jul 22, 2023
1 parent cfd07c3 commit 0179489
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@ version: 2.1
orbs:
win: circleci/[email protected]
jobs:
uberjar:
docker:
- image: cimg/clojure:1.11.1-openjdk-17.0
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- uberjar-{{ checksum "deps.edn" }}-{{ checksum ".circleci/config.yml" }}
- run:
name: Build uberjar
working_directory: ~/repo/cljfmt
command: lein uberjar
- persist_to_workspace:
root: cljfmt/target
paths:
- cljfmt-*-standalone.jar
- save_cache:
paths:
- ~/.m2
key: uberjar-{{ checksum "deps.edn" }}-{{ checksum ".circleci/config.yml" }}
linux_amd64:
docker:
- image: cimg/clojure:1.11.1-openjdk-17.0
Expand Down Expand Up @@ -276,6 +297,12 @@ workflows:
version: 2
compile_and_release:
jobs:
- uberjar:
filters:
branches:
ignore: /.*/
tags:
only: /^v?\d+\.\d+\.\d+$/
- linux_amd64:
filters:
branches:
Expand Down Expand Up @@ -308,6 +335,7 @@ workflows:
only: /^v?\d+\.\d+\.\d+$/
- publish_release:
requires:
- uberjar
- linux_amd64
- linux_aarch64
- macos_amd64
Expand Down

0 comments on commit 0179489

Please sign in to comment.