Skip to content

Commit

Permalink
CI: Update actions to Node 20.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Mar 15, 2024
1 parent 4a12946 commit 0aec414
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ jobs:
include:
- python-version: '3.13-dev'
allow-failure: true
continue-on-error: '${{ matrix.allow-failure }}'
continue-on-error: ${{ matrix.allow-failure }}
name: 'test (${{ matrix.python-version }})'
steps:
- name: Check out source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -44,7 +44,7 @@ jobs:
pip install codecov build
pdm install --dev
- name: Cache YoWASP build products
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/YoWASP
key: YoWASP-${{ runner.os }}-${{ hashFiles('./.venv/**/*.wasm') }}
Expand All @@ -54,21 +54,21 @@ jobs:
run: |
pdm run test
- name: Submit code coverage
run:
run: |
codecov
document:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch tags from upstream repository
run: |
git fetch --tags https://github.com/amaranth-lang/amaranth.git
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
uses: pdm-project/setup-pdm@v4
with:
python-version: '3.11'
- name: Install dependencies
Expand All @@ -78,7 +78,7 @@ jobs:
run: |
pdm run document
- name: Upload documentation archive
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: docs
path: docs/_build
Expand All @@ -87,27 +87,27 @@ jobs:
needs:
- test
- document
if: always() && !contains(needs.*.result, 'cancelled')
if: ${{ always() && !contains(needs.*.result, 'cancelled') }}
runs-on: ubuntu-latest
steps:
- run: ${{ contains(needs.*.result, 'failure') && 'false' || 'true' }}

publish-docs:
needs: document
if: github.repository == 'amaranth-lang/amaranth'
if: ${{ github.repository == 'amaranth-lang/amaranth' }}
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download documentation archive
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: docs
path: docs/
- name: Publish development documentation
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main'
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' }}
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
repository-name: amaranth-lang/amaranth-lang.github.io
Expand All @@ -116,7 +116,7 @@ jobs:
folder: docs/
target-folder: docs/amaranth/latest/
- name: Publish release documentation
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') }}
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
repository-name: amaranth-lang/amaranth-lang.github.io
Expand All @@ -127,15 +127,15 @@ jobs:

publish-docs-dev:
needs: document
if: github.repository != 'amaranth-lang/amaranth'
if: ${{ github.repository != 'amaranth-lang/amaranth' }}
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download documentation archive
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: docs
path: pages/docs/${{ github.ref_name }}/
Expand Down

0 comments on commit 0aec414

Please sign in to comment.