-
Notifications
You must be signed in to change notification settings - Fork 48
/
config.yml
43 lines (37 loc) · 1.23 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: 2
jobs:
build:
machine:
image: ubuntu-2404:2024.11.1
working_directory: ~/repo
environment:
LEIN_ROOT: "true"
AWS_REGION: "eu-west-1"
AWS_ACCESS_KEY_ID: "localstack"
AWS_SECRET_ACCESS_KEY: "localstack"
steps:
- run:
name: Install Babashka
command: |
curl https://mise.run | sh
echo "eval \"\$(/home/circleci/.local/bin/mise activate bash)\"" >> ~/.bashrc
eval "$(/home/circleci/.local/bin/mise activate bash)"
mise use --global babashka@latest
- checkout
- run:
name: Dependencies list
command: |
cat $(find . -name project.clj | sort) > /tmp/all-projects.clj
- restore_cache:
keys:
# when lock file changes, use increasingly general patterns to restore cache
#- maven-repo-v1-{{ .Branch }}-{{ checksum "pom.xml" }}
- maven-repo-v1-{{ .Branch }}-
- maven-repo-v1-
- run: bb all
# don't cache local artifacts
- run: rm -fr ~/.m2/repository/com/brunobonacci/
- save_cache:
paths:
- ~/.m2
key: maven-repo-v1-{{ .Branch }}-{{ checksum "/tmp/all-projects.clj" }}