ci: Update actions (#1360)
This silences warnings about outdated node runtimes in CI jobs. - Trivial upgrades: - actions/checkout@v3 => v4 - actions/deploy-pages@v2 => v4 - actions/upload-pages-artifact@v2 => v3 - mxschmitt/action-tmate@v3.6 => v3.17 - mikepenz/action-junit-report@v3.8.0 => v4 - Upgrades that required small changes or deeper testing: - actions/download-artifact@v3 => v4 - actions/upload-artifact@v3 => v4 - google-github-actions/release-please-action@v3 => v4 - Replaced: - svenstaro/upload-release-action@v2 => gh CLI See also: - https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md
This commit is contained in:
parent
c456ad64d1
commit
ebd608ae68
|
@ -27,7 +27,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
|
@ -40,7 +40,7 @@ jobs:
|
||||||
breathe
|
breathe
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
|
|
||||||
|
@ -66,12 +66,12 @@ jobs:
|
||||||
chmod -R +rX gh-pages/
|
chmod -R +rX gh-pages/
|
||||||
|
|
||||||
- name: Upload docs artifacts
|
- name: Upload docs artifacts
|
||||||
uses: actions/upload-pages-artifact@v2
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: gh-pages
|
path: gh-pages
|
||||||
|
|
||||||
- name: Debug
|
- name: Debug
|
||||||
uses: mxschmitt/action-tmate@v3.6
|
uses: mxschmitt/action-tmate@v3.17
|
||||||
with:
|
with:
|
||||||
limit-access-to-actor: true
|
limit-access-to-actor: true
|
||||||
if: failure() && inputs.debug
|
if: failure() && inputs.debug
|
||||||
|
|
|
@ -44,7 +44,7 @@ jobs:
|
||||||
INCLUDE: ${{ steps.configure.outputs.INCLUDE }}
|
INCLUDE: ${{ steps.configure.outputs.INCLUDE }}
|
||||||
OS: ${{ steps.configure.outputs.OS }}
|
OS: ${{ steps.configure.outputs.OS }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ jobs:
|
||||||
run: git config --global core.autocrlf false
|
run: git config --global core.autocrlf false
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
@ -211,7 +211,7 @@ jobs:
|
||||||
run: ctest -C "${{ matrix.build_type }}" -V --test-dir build/
|
run: ctest -C "${{ matrix.build_type }}" -V --test-dir build/
|
||||||
|
|
||||||
- name: Publish Test Report
|
- name: Publish Test Report
|
||||||
uses: mikepenz/action-junit-report@150e2f992e4fad1379da2056d1d1c279f520e058
|
uses: mikepenz/action-junit-report@v4
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
with:
|
with:
|
||||||
report_paths: 'junit-reports/TEST-*.xml'
|
report_paths: 'junit-reports/TEST-*.xml'
|
||||||
|
@ -276,7 +276,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload static release build artifacts
|
- name: Upload static release build artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: matrix.build_type == 'Release' && matrix.lib_type == 'static'
|
if: matrix.build_type == 'Release' && matrix.lib_type == 'static'
|
||||||
with:
|
with:
|
||||||
name: artifacts-${{ matrix.os_name }}-${{ matrix.target_arch }}
|
name: artifacts-${{ matrix.os_name }}-${{ matrix.target_arch }}
|
||||||
|
@ -285,7 +285,7 @@ jobs:
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
|
|
||||||
- name: Debug
|
- name: Debug
|
||||||
uses: mxschmitt/action-tmate@v3.6
|
uses: mxschmitt/action-tmate@v3.17
|
||||||
with:
|
with:
|
||||||
limit-access-to-actor: true
|
limit-access-to-actor: true
|
||||||
if: failure() && inputs.debug
|
if: failure() && inputs.debug
|
||||||
|
|
|
@ -27,7 +27,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
# We must use 'fetch-depth: 2', or else the linter won't have another
|
# We must use 'fetch-depth: 2', or else the linter won't have another
|
||||||
|
|
|
@ -43,7 +43,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.tag }}
|
ref: ${{ inputs.tag }}
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
|
@ -48,4 +48,4 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v2
|
uses: actions/deploy-pages@v4
|
||||||
|
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.tag }}
|
ref: ${{ inputs.tag }}
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
|
@ -25,20 +25,16 @@ jobs:
|
||||||
tag_name: ${{ steps.release.outputs.tag_name }}
|
tag_name: ${{ steps.release.outputs.tag_name }}
|
||||||
steps:
|
steps:
|
||||||
# Create/update release PR
|
# Create/update release PR
|
||||||
- uses: google-github-actions/release-please-action@v3
|
- uses: google-github-actions/release-please-action@v4
|
||||||
id: release
|
id: release
|
||||||
with:
|
with:
|
||||||
# Required input to specify the release type. This is not really a
|
|
||||||
# go project, but go projects in release-please only update
|
|
||||||
# CHANGELOG.md and nothing else. This is what we want.
|
|
||||||
release-type: go
|
|
||||||
# Make sure we create the PR against the correct branch.
|
# Make sure we create the PR against the correct branch.
|
||||||
default-branch: ${{ github.ref_name }}
|
target-branch: ${{ github.ref_name }}
|
||||||
# Use a special shaka-bot access token for releases.
|
# Use a special shaka-bot access token for releases.
|
||||||
token: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
# Temporary settings to bootstrap v3.0.0.
|
# See also settings in these files:
|
||||||
last-release-sha: 634af6591ce8c701587a78042ae7f81761725710
|
manifest-file: .release-please-manifest.json
|
||||||
bootstrap-sha: 634af6591ce8c701587a78042ae7f81761725710
|
config-file: .release-please-config.json
|
||||||
|
|
||||||
# The jobs below are all conditional on a release having been created by
|
# The jobs below are all conditional on a release having been created by
|
||||||
# someone merging the release PR.
|
# someone merging the release PR.
|
||||||
|
@ -56,7 +52,7 @@ jobs:
|
||||||
outputs:
|
outputs:
|
||||||
latest: ${{ steps.compute.outputs.latest }}
|
latest: ${{ steps.compute.outputs.latest }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-tags: true
|
fetch-tags: true
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
@ -121,22 +117,21 @@ jobs:
|
||||||
needs: [release, build]
|
needs: [release, build]
|
||||||
if: needs.release.outputs.release_created
|
if: needs.release.outputs.release_created
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
merge-multiple: true
|
||||||
|
|
||||||
- name: Debug
|
- name: Debug
|
||||||
run: find -ls
|
run: find -ls
|
||||||
|
|
||||||
- name: Attach packager to release
|
- name: Attach packager to release
|
||||||
uses: svenstaro/upload-release-action@v2
|
env:
|
||||||
with:
|
GITHUB_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
run: |
|
||||||
tag: ${{ needs.release.outputs.tag_name }}
|
gh -R ${{ github.repository }} release upload \
|
||||||
make_latest: false # Already set for the release
|
${{ needs.release.outputs.tag_name }} artifacts/* \
|
||||||
file_glob: true
|
--clobber
|
||||||
file: artifacts/artifacts*/*
|
|
||||||
overwrite: true
|
|
||||||
|
|
||||||
# Surprisingly, Shaka Packager binaries can be installed via npm.
|
# Surprisingly, Shaka Packager binaries can be installed via npm.
|
||||||
# Publish NPM package updates.
|
# Publish NPM package updates.
|
||||||
|
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: shaka-project/shaka-github-tools
|
repository: shaka-project/shaka-github-tools
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ jobs:
|
||||||
outputs:
|
outputs:
|
||||||
MATRIX: ${{ steps.configure.outputs.MATRIX }}
|
MATRIX: ${{ steps.configure.outputs.MATRIX }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: shaka-project/shaka-github-tools
|
repository: shaka-project/shaka-github-tools
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"packages": {
|
||||||
|
".": {
|
||||||
|
"include-component-in-tag": false,
|
||||||
|
"include-v-in-tag": true,
|
||||||
|
"component": "",
|
||||||
|
"release-type-comment": "This is not really a go project, but go projects in release-please only update CHANGELOG.md and nothing else. This is what we want.",
|
||||||
|
"release-type": "go"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
".": "3.0.0"
|
||||||
|
}
|
Loading…
Reference in New Issue