Skip to content

Commit 979c26f

Browse files
committed
WorkflowGenerated updated
1 parent 84995cc commit 979c26f

File tree

3 files changed

+29
-45
lines changed

3 files changed

+29
-45
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -27,40 +27,32 @@ jobs:
2727
runs-on: ${{ matrix.os }}
2828
steps:
2929
- name: Checkout current branch (full)
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0
3333

3434
- name: Setup Java (temurin@11)
3535
if: matrix.java == 'temurin@11'
36-
uses: actions/setup-java@v2
36+
uses: actions/setup-java@v4
3737
with:
3838
distribution: temurin
3939
java-version: 11
40+
cache: sbt
4041

41-
- name: Cache sbt
42-
uses: actions/cache@v2
43-
with:
44-
path: |
45-
~/.sbt
46-
~/.ivy2/cache
47-
~/.coursier/cache/v1
48-
~/.cache/coursier/v1
49-
~/AppData/Local/Coursier/Cache/v1
50-
~/Library/Caches/Coursier/v1
51-
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
42+
- name: Setup sbt
43+
uses: sbt/setup-sbt@v1
5244

5345
- name: Check that workflows are up to date
54-
run: sbt ++${{ matrix.scala }} githubWorkflowCheck
46+
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
5547

5648
- name: Build project
57-
run: sbt ++${{ matrix.scala }} test
49+
run: sbt '++ ${{ matrix.scala }}' test
5850

5951
- name: Compress target directories
6052
run: tar cf targets.tar target modules/shacl/target modules/utilsTest/target project/target
6153

6254
- name: Upload target directories
63-
uses: actions/upload-artifact@v2
55+
uses: actions/upload-artifact@v4
6456
with:
6557
name: target-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }}
6658
path: targets.tar
@@ -77,31 +69,23 @@ jobs:
7769
runs-on: ${{ matrix.os }}
7870
steps:
7971
- name: Checkout current branch (full)
80-
uses: actions/checkout@v2
72+
uses: actions/checkout@v4
8173
with:
8274
fetch-depth: 0
8375

8476
- name: Setup Java (temurin@11)
8577
if: matrix.java == 'temurin@11'
86-
uses: actions/setup-java@v2
78+
uses: actions/setup-java@v4
8779
with:
8880
distribution: temurin
8981
java-version: 11
82+
cache: sbt
9083

91-
- name: Cache sbt
92-
uses: actions/cache@v2
93-
with:
94-
path: |
95-
~/.sbt
96-
~/.ivy2/cache
97-
~/.coursier/cache/v1
98-
~/.cache/coursier/v1
99-
~/AppData/Local/Coursier/Cache/v1
100-
~/Library/Caches/Coursier/v1
101-
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
84+
- name: Setup sbt
85+
uses: sbt/setup-sbt@v1
10286

10387
- name: Download target directories (2.12.19)
104-
uses: actions/download-artifact@v2
88+
uses: actions/download-artifact@v4
10589
with:
10690
name: target-${{ matrix.os }}-2.12.19-${{ matrix.java }}
10791

@@ -111,4 +95,4 @@ jobs:
11195
rm targets.tar
11296
11397
- name: Publish project
114-
run: sbt ++${{ matrix.scala }} +publish
98+
run: sbt +publish

.github/workflows/clean.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1818
steps:
1919
- name: Delete artifacts
20+
shell: bash {0}
2021
run: |
2122
# Customize those three lines with your repository and credentials:
2223
REPO=${GITHUB_API_URL}/repos/${{ github.repository }}
@@ -25,7 +26,7 @@ jobs:
2526
ghapi() { curl --silent --location --user _:$GITHUB_TOKEN "$@"; }
2627
2728
# A temporary file which receives HTTP response headers.
28-
TMPFILE=/tmp/tmp.$$
29+
TMPFILE=$(mktemp)
2930
3031
# An associative array, key: artifact name, value: number of artifacts of that name.
3132
declare -A ARTCOUNT

project/plugins.sbt

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.14.2")
2-
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.1.0")
3-
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
4-
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0")
5-
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
6-
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.2")
7-
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1")
1+
addSbtPlugin("com.github.sbt" % "sbt-github-actions" % "0.25.0")
2+
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.1.0")
3+
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
4+
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0")
5+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
6+
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.2")
7+
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1")
88
//addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.3")
9-
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.8.1")
10-
addSbtPlugin("org.lyranthe.sbt" % "partial-unification" % "1.1.2")
11-
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.24")
12-
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.8.2")
9+
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.8.1")
10+
addSbtPlugin("org.lyranthe.sbt" % "partial-unification" % "1.1.2")
11+
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.24")
12+
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.8.2")
1313

1414
// addSbtPlugin("com.simplytyped" % "sbt-antlr4" % "0.8.2")
1515

16-
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")
17-
16+
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")

0 commit comments

Comments
 (0)