Skip to content

Commit

Permalink
CI: upgrade all GitHub Actions.
Browse files Browse the repository at this point in the history
Prompted by deprecation of Node v16 actions.
  • Loading branch information
whitequark committed Jun 26, 2024
1 parent e957170 commit 33cae38
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
PDM_LOCKFILE: 'pdm.min.lock'
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
- name: Generate min-versions lockfile
working-directory: ./software
run: pdm lock --group :all --strategy direct_minimal_versions
- name: Submit pull request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GH_TOKEN }}
commit-message: 'software: update `pdm.min.lock`.'
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:
PDM_LOCKFILE: ${{ matrix.dep-versions == 'minimal' && 'pdm.min.lock' || 'pdm.lock' }}
steps:
- name: Check out source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Glasgow build products
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/GlasgowEmbedded
key: Glasgow-${{ matrix.python-version }}-${{ matrix.dep-versions }}-${{ hashFiles('./software/**') }}
Expand All @@ -53,7 +53,7 @@ jobs:
Glasgow-${{ matrix.python-version }}-
Glasgow-
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
- name: Generate lockfile
Expand All @@ -67,7 +67,7 @@ jobs:
working-directory: ./software
run: pdm sync
- name: Cache YoWASP build products
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/YoWASP
key: YoWASP-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.dep-versions }}-${{ hashFiles('./software/.venv/**/*.wasm') }}
Expand All @@ -86,7 +86,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
Expand All @@ -111,11 +111,11 @@ jobs:
working-directory: docs/manual
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
- name: Install dependencies
run: pdm install
- name: Check for dead links
Expand All @@ -125,7 +125,7 @@ jobs:
DOCS_IS_PRODUCTION: ${{ (github.repository == 'GlasgowEmbedded/glasgow' && github.event.ref == 'refs/heads/main') && 'yes' || 'no' }}
run: pdm run build
- name: Upload documentation archive
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: docs
path: docs/manual/build
Expand All @@ -148,10 +148,10 @@ jobs:
contents: write
steps:
- name: Check out source code
uses: actions/checkout@v3
uses: actions/checkout@v4
- if: ${{ github.repository == 'GlasgowEmbedded/glasgow' && github.event.ref == 'refs/heads/main' }}
name: Inject documentation from artifact under latest/
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: docs
path: pages/latest/
Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:
END
- if: ${{ github.repository != 'GlasgowEmbedded/glasgow' }}
name: Inject documentation from artifact under {branch}/
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: docs
path: pages/${{ github.ref_name }}/
Expand Down

0 comments on commit 33cae38

Please sign in to comment.