Skip to content

Commit cb9654f

Browse files
authored
Update GitHub actions (#635)
* Update CI actions
1 parent aa22a3d commit cb9654f

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

.github/actions/collect_artefacts/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ runs:
44
using: "composite"
55
steps:
66
- name: upload core dumps
7-
uses: actions/upload-artifact@v3
7+
uses: actions/upload-artifact@v6
88
with:
99
name: core-dumps
1010
path: /tmp/core_dumps

.github/actions/init-python-env/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ runs:
1818
steps:
1919
- name: Load cached Poetry installation
2020
id: cached-poetry
21-
uses: actions/cache@v3
21+
uses: actions/cache@v5
2222
with:
2323
path: ~/.local # the path depends on the OS, this is linux
2424
key: poetry-${{inputs.poetry_version}}-0 # increment to reset cache

.github/actions/init-scala-env/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ description: setup scala environment
33
runs:
44
using: "composite"
55
steps:
6-
- uses: coursier/cache-action@v6
7-
- uses: coursier/setup-action@v1
6+
- uses: coursier/cache-action@v7
7+
- uses: coursier/setup-action@v2
88
with:
99
jvm: zulu:8.0.362
1010
apps: sbt

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414

1515
build-scala:
16-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-22.04
1717

1818
strategy:
1919
matrix:
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: Checkout Repository
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 0
3030

@@ -52,15 +52,15 @@ jobs:
5252
run: make build-scala
5353

5454
- name: Cache Spark Assembly
55-
uses: actions/cache@v3
55+
uses: actions/cache@v5
5656
with:
5757
path: ./dist/*
5858
key: dist-${{ matrix.spark_version }}-${{ github.sha }}
5959

6060
build-python:
6161
# scala/* branches are not supposed to change python code, trust them
6262
if: ${{ !startsWith(github.event.inputs.from_branch, 'scala/') }}
63-
runs-on: ubuntu-20.04
63+
runs-on: ubuntu-22.04
6464
needs: build-scala
6565

6666
strategy:
@@ -75,7 +75,7 @@ jobs:
7575

7676
steps:
7777
- name: Checkout Repository
78-
uses: actions/checkout@v3
78+
uses: actions/checkout@v4
7979
with:
8080
fetch-depth: 0
8181

@@ -88,7 +88,7 @@ jobs:
8888
shell: bash
8989
run: make lint-python
9090

91-
- uses: actions/cache@v3
91+
- uses: actions/cache@v5
9292
with:
9393
path: ./dist/*
9494
key: dist-${{ matrix.spark_version }}-${{ github.sha }}
@@ -102,7 +102,7 @@ jobs:
102102
publish-scala:
103103
name: Publish Scala Artifacts
104104
needs: [ build-scala, build-python ]
105-
runs-on: ubuntu-20.04
105+
runs-on: ubuntu-22.04
106106
if: (github.event_name != 'pull_request') && startsWith(github.ref, 'refs/tags/v')
107107

108108
strategy:
@@ -114,7 +114,7 @@ jobs:
114114

115115
steps:
116116
- name: Checkout Repository
117-
uses: actions/checkout@v3
117+
uses: actions/checkout@v4
118118
with:
119119
fetch-depth: 0
120120

@@ -135,7 +135,7 @@ jobs:
135135
run: make build-scala
136136

137137
- name: Cache Spark Assembly
138-
uses: actions/cache@v3
138+
uses: actions/cache@v5
139139
with:
140140
path: ./dist/*
141141
key: dist-${{ matrix.spark_version }}-${{ github.ref }}
@@ -144,7 +144,7 @@ jobs:
144144
publish-python:
145145
name: Publish Scala Artifacts
146146
needs: [ publish-scala ]
147-
runs-on: ubuntu-20.04
147+
runs-on: ubuntu-22.04
148148
if: (github.event_name != 'pull_request') && startsWith(github.ref, 'refs/tags/v')
149149

150150
strategy:
@@ -159,7 +159,7 @@ jobs:
159159

160160
steps:
161161
- name: Checkout Repository
162-
uses: actions/checkout@v3
162+
uses: actions/checkout@v4
163163
with:
164164
fetch-depth: 0
165165

@@ -168,7 +168,7 @@ jobs:
168168
python_version: ${{ matrix.python }}
169169
spark_version: ${{ matrix.spark_version }}
170170

171-
- uses: actions/cache@v3
171+
- uses: actions/cache@v5
172172
with:
173173
path: ./dist/*
174174
key: dist-${{ matrix.spark_version }}-${{ github.ref }}
@@ -182,7 +182,7 @@ jobs:
182182
# uses: ./.github/actions/upload_artefacts
183183

184184
# TODO: Where does this go, do we need it?
185-
# - uses: actions/cache@v3
185+
# - uses: actions/cache@v5
186186
# with:
187187
# path: ./dist/*
188188
# key: dist-${{ github.sha }}

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ on:
1313

1414
jobs:
1515
docs:
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1717
container:
1818
image: s22s/debian-openjdk-conda-gdal:6790f8d
1919

2020
steps:
2121
- uses: actions/checkout@v2
2222
with:
2323
fetch-depth: 0
24-
- uses: coursier/cache-action@v6
24+
- uses: coursier/cache-action@v7
2525
- uses: olafurpg/setup-scala@v13
2626
with:
2727
java-version: adopt@1.11

0 commit comments

Comments
 (0)