Skip to content

Commit d20d6bb

Browse files
committed
Regenerate GitHub Actions workflow
Executed command: sbt githubWorkflowGenerate
1 parent 8a04515 commit d20d6bb

2 files changed

Lines changed: 23 additions & 38 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -22,45 +22,37 @@ jobs:
2222
strategy:
2323
matrix:
2424
os: [ubuntu-latest]
25-
scala: [2.12.16]
25+
scala: [2.12.21]
2626
java: [temurin@11]
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 modules/wikibaserdf/target modules/rbe/target modules/shapepath/target modules/depGraphs/target modules/shexsjena/target target shexs-docs/target modules/shexTest/target modules/shex/target modules/shapemap/target modules/wshex/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
@@ -72,43 +64,35 @@ jobs:
7264
strategy:
7365
matrix:
7466
os: [ubuntu-latest]
75-
scala: [2.12.16]
67+
scala: [2.12.21]
7668
java: [temurin@11]
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') }}
102-
103-
- name: Download target directories (2.12.16)
104-
uses: actions/download-artifact@v2
84+
- name: Setup sbt
85+
uses: sbt/setup-sbt@v1
86+
87+
- name: Download target directories (2.12.21)
88+
uses: actions/download-artifact@v4
10589
with:
106-
name: target-${{ matrix.os }}-2.12.16-${{ matrix.java }}
90+
name: target-${{ matrix.os }}-2.12.21-${{ matrix.java }}
10791

108-
- name: Inflate target directories (2.12.16)
92+
- name: Inflate target directories (2.12.21)
10993
run: |
11094
tar xf targets.tar
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

0 commit comments

Comments
 (0)