mirror of https://github.com/sbt/sbt.git
Use coursier/setup-action
This commit is contained in:
parent
05bebd7927
commit
f7507b7a38
|
|
@ -30,9 +30,10 @@ jobs:
|
|||
- uses: coursier/cache-action@v5
|
||||
with:
|
||||
extraKey: ${{ matrix.PLUGIN }}-${{ matrix.TEST_GROUP }}
|
||||
- uses: olafurpg/setup-scala@v10
|
||||
- uses: coursier/setup-action@v1
|
||||
with:
|
||||
java-version: adopt@1.8.0-232
|
||||
jvm: 8
|
||||
apps: sbt-launcher
|
||||
- run: scripts/ci.sh
|
||||
shell: bash
|
||||
env:
|
||||
|
|
@ -49,10 +50,13 @@ jobs:
|
|||
fetch-depth: 0
|
||||
submodules: true
|
||||
- uses: coursier/cache-action@v5
|
||||
- uses: olafurpg/setup-scala@v10
|
||||
- uses: coursier/setup-action@v1
|
||||
with:
|
||||
jvm: 8
|
||||
apps: sbt-launcher
|
||||
- uses: olafurpg/setup-gpg@v3
|
||||
- name: Release
|
||||
run: ./sbt ci-release
|
||||
run: sbt ci-release
|
||||
env:
|
||||
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
|
||||
PGP_SECRET: ${{ secrets.PGP_SECRET }}
|
||||
|
|
|
|||
|
|
@ -1,17 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euvx
|
||||
|
||||
./scripts/cs-setup.sh
|
||||
mkdir -p bin
|
||||
./cs bootstrap -o bin/sbt sbt-launcher io.get-coursier:coursier_2.12:2.0.0-RC6-25
|
||||
rm -f cs cs.exe
|
||||
|
||||
if [ "$(expr substr $(uname -s) 1 5 2>/dev/null)" == "Linux" ]; then
|
||||
SBT="./bin/sbt -C--plugin-version=2.0.0-RC6-8"
|
||||
SBT="sbt -C--plugin-version=2.0.0-RC6-8"
|
||||
elif [ "$(uname)" == "Darwin" ]; then
|
||||
SBT="./bin/sbt -C--plugin-version=2.0.0-RC6-8"
|
||||
SBT="sbt -C--plugin-version=2.0.0-RC6-8"
|
||||
else
|
||||
SBT="./bin/sbt.bat -C--plugin-version=2.0.0-RC6-8"
|
||||
SBT="sbt.bat -C--plugin-version=2.0.0-RC6-8"
|
||||
fi
|
||||
|
||||
lmCoursier() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue