Skip to content

Commit 0aec414

Browse files
committed
CI: Update actions to Node 20.
1 parent 4a12946 commit 0aec414

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/main.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424
include:
2525
- python-version: '3.13-dev'
2626
allow-failure: true
27-
continue-on-error: '${{ matrix.allow-failure }}'
27+
continue-on-error: ${{ matrix.allow-failure }}
2828
name: 'test (${{ matrix.python-version }})'
2929
steps:
3030
- name: Check out source code
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3232
with:
3333
fetch-depth: 0
3434
- name: Set up PDM
35-
uses: pdm-project/setup-pdm@v3
35+
uses: pdm-project/setup-pdm@v4
3636
with:
3737
python-version: ${{ matrix.python-version }}
3838
- name: Install dependencies
@@ -44,7 +44,7 @@ jobs:
4444
pip install codecov build
4545
pdm install --dev
4646
- name: Cache YoWASP build products
47-
uses: actions/cache@v3
47+
uses: actions/cache@v4
4848
with:
4949
path: ~/.cache/YoWASP
5050
key: YoWASP-${{ runner.os }}-${{ hashFiles('./.venv/**/*.wasm') }}
@@ -54,21 +54,21 @@ jobs:
5454
run: |
5555
pdm run test
5656
- name: Submit code coverage
57-
run:
57+
run: |
5858
codecov
5959
6060
document:
6161
runs-on: ubuntu-latest
6262
steps:
6363
- name: Check out source code
64-
uses: actions/checkout@v3
64+
uses: actions/checkout@v4
6565
with:
6666
fetch-depth: 0
6767
- name: Fetch tags from upstream repository
6868
run: |
6969
git fetch --tags https://github.com/amaranth-lang/amaranth.git
7070
- name: Set up PDM
71-
uses: pdm-project/setup-pdm@v3
71+
uses: pdm-project/setup-pdm@v4
7272
with:
7373
python-version: '3.11'
7474
- name: Install dependencies
@@ -78,7 +78,7 @@ jobs:
7878
run: |
7979
pdm run document
8080
- name: Upload documentation archive
81-
uses: actions/upload-artifact@v3
81+
uses: actions/upload-artifact@v4
8282
with:
8383
name: docs
8484
path: docs/_build
@@ -87,27 +87,27 @@ jobs:
8787
needs:
8888
- test
8989
- document
90-
if: always() && !contains(needs.*.result, 'cancelled')
90+
if: ${{ always() && !contains(needs.*.result, 'cancelled') }}
9191
runs-on: ubuntu-latest
9292
steps:
9393
- run: ${{ contains(needs.*.result, 'failure') && 'false' || 'true' }}
9494

9595
publish-docs:
9696
needs: document
97-
if: github.repository == 'amaranth-lang/amaranth'
97+
if: ${{ github.repository == 'amaranth-lang/amaranth' }}
9898
runs-on: ubuntu-latest
9999
steps:
100100
- name: Check out source code
101-
uses: actions/checkout@v3
101+
uses: actions/checkout@v4
102102
with:
103103
fetch-depth: 0
104104
- name: Download documentation archive
105-
uses: actions/download-artifact@v3
105+
uses: actions/download-artifact@v4
106106
with:
107107
name: docs
108108
path: docs/
109109
- name: Publish development documentation
110-
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main'
110+
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' }}
111111
uses: JamesIves/github-pages-deploy-action@releases/v4
112112
with:
113113
repository-name: amaranth-lang/amaranth-lang.github.io
@@ -116,7 +116,7 @@ jobs:
116116
folder: docs/
117117
target-folder: docs/amaranth/latest/
118118
- name: Publish release documentation
119-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
119+
if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') }}
120120
uses: JamesIves/github-pages-deploy-action@releases/v4
121121
with:
122122
repository-name: amaranth-lang/amaranth-lang.github.io
@@ -127,15 +127,15 @@ jobs:
127127

128128
publish-docs-dev:
129129
needs: document
130-
if: github.repository != 'amaranth-lang/amaranth'
130+
if: ${{ github.repository != 'amaranth-lang/amaranth' }}
131131
runs-on: ubuntu-latest
132132
steps:
133133
- name: Check out source code
134-
uses: actions/checkout@v3
134+
uses: actions/checkout@v4
135135
with:
136136
fetch-depth: 0
137137
- name: Download documentation archive
138-
uses: actions/download-artifact@v3
138+
uses: actions/download-artifact@v4
139139
with:
140140
name: docs
141141
path: pages/docs/${{ github.ref_name }}/

0 commit comments

Comments
 (0)