Skip to content

Commit 4b477bc

Browse files
committed
Regenerate GitHub Actions workflow
Executed command: sbt githubWorkflowGenerate
1 parent 8672764 commit 4b477bc

2 files changed

Lines changed: 20 additions & 39 deletions

File tree

.github/workflows/ci.yml

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

3535
- name: Setup Java (temurin@8)
3636
if: matrix.java == 'temurin@8'
37-
uses: actions/setup-java@v2
37+
uses: actions/setup-java@v4
3838
with:
3939
distribution: temurin
4040
java-version: 8
41+
cache: sbt
4142

4243
- name: Setup Java (temurin@17)
4344
if: matrix.java == 'temurin@17'
44-
uses: actions/setup-java@v2
45+
uses: actions/setup-java@v4
4546
with:
4647
distribution: temurin
4748
java-version: 17
48-
49-
- name: Cache sbt
50-
uses: actions/cache@v2
51-
with:
52-
path: |
53-
~/.sbt
54-
~/.ivy2/cache
55-
~/.coursier/cache/v1
56-
~/.cache/coursier/v1
57-
~/AppData/Local/Coursier/Cache/v1
58-
~/Library/Caches/Coursier/v1
59-
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
49+
cache: sbt
6050

6151
- name: Check formatting
62-
run: sbt ++${{ matrix.scala }} scalafmtCheckAll scalafmtSbtCheck
52+
run: sbt '++ ${{ matrix.scala }}' scalafmtCheckAll scalafmtSbtCheck
6353

6454
- name: Check that workflows are up to date
65-
run: sbt ++${{ matrix.scala }} githubWorkflowCheck
55+
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
6656

6757
- name: Build project
68-
run: sbt ++${{ matrix.scala }} test
58+
run: sbt '++ ${{ matrix.scala }}' test
6959

7060
- name: Compress target directories
7161
run: tar cf targets.tar target modules/tail-sampling-caffeine/target modules/tail-sampling-cache-store/target modules/tail-sampling-redis-store/target project/target
7262

7363
- name: Upload target directories
74-
uses: actions/upload-artifact@v2
64+
uses: actions/upload-artifact@v4
7565
with:
7666
name: target-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }}
7767
path: targets.tar
@@ -88,38 +78,28 @@ jobs:
8878
runs-on: ${{ matrix.os }}
8979
steps:
9080
- name: Checkout current branch (full)
91-
uses: actions/checkout@v2
81+
uses: actions/checkout@v4
9282
with:
9383
fetch-depth: 0
9484

9585
- name: Setup Java (temurin@8)
9686
if: matrix.java == 'temurin@8'
97-
uses: actions/setup-java@v2
87+
uses: actions/setup-java@v4
9888
with:
9989
distribution: temurin
10090
java-version: 8
91+
cache: sbt
10192

10293
- name: Setup Java (temurin@17)
10394
if: matrix.java == 'temurin@17'
104-
uses: actions/setup-java@v2
95+
uses: actions/setup-java@v4
10596
with:
10697
distribution: temurin
10798
java-version: 17
108-
109-
- name: Cache sbt
110-
uses: actions/cache@v2
111-
with:
112-
path: |
113-
~/.sbt
114-
~/.ivy2/cache
115-
~/.coursier/cache/v1
116-
~/.cache/coursier/v1
117-
~/AppData/Local/Coursier/Cache/v1
118-
~/Library/Caches/Coursier/v1
119-
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
99+
cache: sbt
120100

121101
- name: Download target directories (2.13.8)
122-
uses: actions/download-artifact@v2
102+
uses: actions/download-artifact@v4
123103
with:
124104
name: target-${{ matrix.os }}-2.13.8-${{ matrix.java }}
125105

@@ -129,7 +109,7 @@ jobs:
129109
rm targets.tar
130110
131111
- name: Download target directories (2.12.16)
132-
uses: actions/download-artifact@v2
112+
uses: actions/download-artifact@v4
133113
with:
134114
name: target-${{ matrix.os }}-2.12.16-${{ matrix.java }}
135115

@@ -139,7 +119,7 @@ jobs:
139119
rm targets.tar
140120
141121
- name: Download target directories (3.1.3)
142-
uses: actions/download-artifact@v2
122+
uses: actions/download-artifact@v4
143123
with:
144124
name: target-${{ matrix.os }}-3.1.3-${{ matrix.java }}
145125

@@ -159,4 +139,4 @@ jobs:
159139
env:
160140
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
161141
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
162-
run: sbt ++${{ matrix.scala }} ciReleaseSonatype
142+
run: sbt ciReleaseSonatype

.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)