Skip to content

Commit

Permalink
build perf 2
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 committed Nov 10, 2024
1 parent 15e553d commit f3a1e59
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 34 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/bb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,28 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

# It is important to install java before installing clojure tools which needs java
# exclusions: babashka, clj-kondo and cljstyle
- name: Prepare java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'

- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@10.1
uses: DeLaGuardo/setup-clojure@12.6
with:
# Install just one or all simultaneously
# The value must indicate a particular version of the tool, or use 'latest'
# to always provision the latest version
bb: latest

# Optional step:
- name: Cache clojure dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
# List all files containing dependencies:
key: cljdeps-${{ hashFiles('deps.edn') }}
# key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }}
# key: cljdeps-${{ hashFiles('project.clj') }}
# key: cljdeps-${{ hashFiles('build.boot') }}
key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }}
restore-keys: cljdeps-

- name: Execute bb tests
run: |
bb test:bb
run: bb test:bb
24 changes: 7 additions & 17 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,29 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

# It is important to install java before installing clojure tools which needs java
# exclusions: babashka, clj-kondo and cljstyle
- name: Prepare java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'

- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@10.1
uses: DeLaGuardo/setup-clojure@12.6
with:
# Install just one or all simultaneously
# The value must indicate a particular version of the tool, or use 'latest'
# to always provision the latest version
cli: latest
bb: latest

# Optional step:
- name: Cache clojure dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
# List all files containing dependencies:
key: cljdeps-${{ hashFiles('deps.edn') }}
# key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }}
# key: cljdeps-${{ hashFiles('project.clj') }}
# key: cljdeps-${{ hashFiles('build.boot') }}
key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }}
restore-keys: cljdeps-

- name: Run tests
run: |
bb test/bb/kaocha/canary.clj
run: bb test/bb/kaocha/canary.clj

0 comments on commit f3a1e59

Please sign in to comment.