File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ name : installer
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ build :
8+ strategy :
9+ fail-fast : false
10+ matrix :
11+ os :
12+ - ubuntu-20.04
13+ - macos-10.15
14+ - windows-2022
15+ runs-on : ${{ matrix.os }}
16+ timeout-minutes : 30
17+
18+ steps :
19+ - uses : actions/checkout@v2
20+ - uses : actions/setup-java@v3
21+ with :
22+ distribution : ' zulu'
23+ java-version : ' 11'
24+ - uses : fwilhe2/setup-kotlin@main
25+ with :
26+ version : 1.6.21
27+
28+ - name : Install dependencies for ${{ runner.os }}
29+ shell : bash
30+ run : |
31+ if [ "$RUNNER_OS" == "Windows" ]; then
32+ choco install zip
33+ # Overwrite the WSL bash.exe
34+ cp /c/msys64/usr/bin/bash.exe /c/Windows/System32/bash.exe
35+ elif [ "$RUNNER_OS" == "Linux" ]; then
36+ # SDK man is enough?
37+ elif [ "$RUNNER_OS" == "macOS" ]; then
38+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
39+ else
40+ echo "Unknown OS"
41+ exit 1
42+ fi
43+
44+ - name : Install sdkman
45+ shell : bash
46+ run : |
47+ bash -c "curl -s "https://get.sdkman.io" | bash"
48+ source "$HOME/.sdkman/bin/sdkman-init.sh"
49+
50+ - name : Run install/uninstall tests
51+ timeout-minutes : 10
52+ shell : bash
53+ run : |
54+ sdk install kscript 4.0.2
55+ kscript
56+ sdk uninstall kscript 4.0.2
You can’t perform that action at this time.
0 commit comments