Skip to content

Commit 03a9dff

Browse files
committed
Merge branch 'master' of github.com:kimim/clj-djl
2 parents f8d68ff + 6bcf662 commit 03a9dff

File tree

1 file changed

+33
-15
lines changed

1 file changed

+33
-15
lines changed

.github/workflows/clojure.yml

+33-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,37 @@
1-
name: Clojure CI
2-
3-
on:
4-
push:
5-
branches: [ master ]
6-
pull_request:
7-
branches: [ master ]
8-
1+
name: clj-djl
2+
on: [push]
93
jobs:
10-
build:
4+
clojure:
5+
strategy:
6+
matrix:
7+
os: [ubuntu-latest, macOS-latest, windows-latest]
118

12-
runs-on: ubuntu-latest
9+
runs-on: ${{ matrix.os }}
1310

1411
steps:
15-
- uses: actions/checkout@v2
16-
- name: Install dependencies
17-
run: lein deps
18-
- name: Run tests
19-
run: lein test
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Prepare java
16+
uses: actions/setup-java@v2
17+
with:
18+
distribution: 'zulu'
19+
java-version: '8'
20+
21+
- name: Install clojure tools
22+
uses: DeLaGuardo/[email protected]
23+
with:
24+
# Install just one or all simultaneously
25+
# The value must indicate a particular version of the tool, or use 'latest'
26+
# to always provision the latest version
27+
cli: 1.11.1.1113 # Clojure CLI based on tools.deps
28+
29+
- name: Execute clojure code on Linux and MacOS
30+
if: ${{ matrix.os != 'windows-latest' }}
31+
run: clojure -T:build ci
32+
shell: bash
33+
34+
- name: Execute clojure code on Windows
35+
if: ${{ matrix.os == 'windows-latest' }}
36+
run: clojure -T:build ci
37+
shell: powershell

0 commit comments

Comments
 (0)