Skip to content

Commit 28efd64

Browse files
committed
ci: adapt to changes for github actions windows
Attempt to install scoop failed on Windows. We use scoop to install babashka. Figuring out why is a yak that I have no real interest in shaving. Try instead a install babashka via GitHub action.
1 parent 74e4f43 commit 28efd64

File tree

5 files changed

+19
-33
lines changed

5 files changed

+19
-33
lines changed

.github/workflows/code-coverage.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
java-version: '11'
2626

2727
- name: Install babashka
28-
run: curl -s https://raw.githubusercontent.com/borkdude/babashka/master/install | sudo bash
28+
uses: turtlequeue/[email protected]
29+
with:
30+
babashka-version: 0.7.8
2931

3032
- name: Install clojure
3133
run: curl -s https://download.clojure.org/install/linux-install-1.10.3.986.sh | sudo bash

.github/workflows/libs-test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ jobs:
3333
sudo apt-get update
3434
sudo apt-get install -y planck
3535
36-
- name: Install Babashka
37-
run: curl -s https://raw.githubusercontent.com/borkdude/babashka/master/install | sudo bash
36+
- name: Install babashka
37+
uses: turtlequeue/[email protected]
38+
with:
39+
babashka-version: 0.7.8
3840

3941
- name: Install Clojure
4042
run: curl -s https://download.clojure.org/install/linux-install-1.10.3.986.sh | sudo bash

.github/workflows/native-image-test.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,10 @@ jobs:
4343
#
4444
# Install Babashka
4545
#
46-
- name: Install babashka (windows)
47-
run: |
48-
iwr -useb get.scoop.sh | iex
49-
scoop bucket add scoop-clojure https://github.com/littleli/scoop-clojure
50-
scoop bucket add extras
51-
scoop install babashka --independent
52-
echo "$HOME\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
53-
if: matrix.os == 'windows-latest'
54-
- name: Install babashka (macOS)
55-
run: brew install borkdude/brew/babashka
56-
if: matrix.os == 'macos-latest'
57-
- name: Install babashka (linux)
58-
run: curl -s https://raw.githubusercontent.com/borkdude/babashka/master/install | sudo bash
59-
if: matrix.os == 'ubuntu-latest'
46+
- name: Install babashka
47+
uses: turtlequeue/[email protected]
48+
with:
49+
babashka-version: 0.7.8
6050

6151
#
6252
# Install Clojure

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ jobs:
3535
distribution: 'temurin'
3636
java-version: '11'
3737

38-
- name: Install Babashka
39-
run: curl -s https://raw.githubusercontent.com/borkdude/babashka/master/install | sudo bash
38+
- name: Install babashka
39+
uses: turtlequeue/[email protected]
40+
with:
41+
babashka-version: 0.7.8
4042

4143
- name: Install Clojure
4244
run: curl -s https://download.clojure.org/install/linux-install-1.10.3.986.sh | sudo bash

.github/workflows/unit-test.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,10 @@ jobs:
6969
#
7070
# Install Babashka
7171
#
72-
- name: Install babashka (windows)
73-
run: |
74-
iwr -useb get.scoop.sh | iex
75-
scoop bucket add scoop-clojure https://github.com/littleli/scoop-clojure
76-
scoop bucket add extras
77-
scoop install babashka --independent
78-
echo "$HOME\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
79-
if: matrix.os == 'windows-latest'
80-
- name: Install babashka (macOS)
81-
run: brew install borkdude/brew/babashka
82-
if: matrix.os == 'macos-latest'
83-
- name: Install babashka (linux)
84-
run: curl -s https://raw.githubusercontent.com/borkdude/babashka/master/install | sudo bash
85-
if: matrix.os == 'ubuntu-latest'
72+
- name: Install babashka
73+
uses: turtlequeue/[email protected]
74+
with:
75+
babashka-version: 0.7.8
8676

8777
#
8878
# Install Clojure

0 commit comments

Comments
 (0)