Skip to content

Commit 455b24d

Browse files
committed
Use clojure from PATH
1 parent 4ad1cc3 commit 455b24d

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
checks:
1010
runs-on: ubuntu-latest
11-
11+
1212
steps:
1313
- uses: actions/checkout@v4
1414
- uses: actions/cache@v4
@@ -22,18 +22,21 @@ jobs:
2222
2323
- name: Install clj runtime
2424
run: .github/workflows/install-binaries.sh
25-
25+
26+
- name: Add clj runtime to PATH
27+
run: echo "${PWD}/bin" >> $GITHUB_PATH
28+
2629
- name: Run tests on Clojure
27-
run: bin/clojure -M:test
30+
run: clojure -M:test
2831

2932
- name: Run tests on Babashka
30-
run: bin/bb -Sdeps '{:deps {lambdaisland/kaocha {:mvn/version "RELEASE"}}}' -m kaocha.runner/-main
33+
run: bb -Sdeps '{:deps {lambdaisland/kaocha {:mvn/version "RELEASE"}}}' -m kaocha.runner/-main
3134

3235
- name: Check dependency freshness
33-
run: bin/clojure -M:outdated
36+
run: clojure -M:outdated
3437

3538
- name: Run linters
36-
run: bin/clojure -M:clj-kondo --lint src test
39+
run: clojure -M:clj-kondo --lint src test
3740

3841
create_release:
3942
if: startsWith(github.ref, 'refs/tags/v0') || startsWith(github.ref, 'refs/tags/v1')
@@ -97,7 +100,7 @@ jobs:
97100
run: .github/workflows/install-binaries.sh
98101

99102
- name: Build artifact
100-
run: make ${{ steps.artifact.outputs.filename }} BB=bin/bb
103+
run: make ${{ steps.artifact.outputs.filename }}
101104

102105
- name: Upload artifact
103106
uses: actions/upload-release-asset@v1

0 commit comments

Comments
 (0)