Skip to content

Commit

Permalink
ci: Upgrade to the latest actions
Browse files Browse the repository at this point in the history
This commit updates the CI workflows to use the latest actions available
at the time of this commit to avoid the scheduled deprecations.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
  • Loading branch information
stephanosio committed May 28, 2024
1 parent 43e6d12 commit 61625aa
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ jobs:
steps:
- name: Check out source code
if: ${{ github.event_name != 'pull_request_target' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Check out source code (pull request)
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
Expand All @@ -116,7 +116,7 @@ jobs:
echo "${VERSION:1}" > version
- name: Upload version file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: version
path: version
Expand Down Expand Up @@ -552,14 +552,14 @@ jobs:
- name: Check out source code
if: ${{ github.event_name != 'pull_request_target' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false

- name: Check out source code (pull request)
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
submodules: recursive
Expand Down Expand Up @@ -601,13 +601,13 @@ jobs:
${CT_NG} version
- name: Download version information
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: version
path: ${{ runner.temp }}

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_CACHE_SDK_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_CACHE_SDK_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -805,13 +805,13 @@ jobs:
- name: Upload toolchain build log
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: log_${{ matrix.host.name }}_${{ matrix.target }}
path: ${{ matrix.target }}.log

- name: Upload toolchain build artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: toolchain_${{ matrix.host.name }}_${{ matrix.target }}
path: |
Expand Down Expand Up @@ -869,21 +869,21 @@ jobs:
- name: Check out source code
if: ${{ github.event_name != 'pull_request_target' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false

- name: Check out source code (pull request)
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
submodules: recursive
persist-credentials: false

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_CACHE_SDK_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_CACHE_SDK_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -957,7 +957,7 @@ jobs:
- name: Upload toolchain build artifact
if: startsWith(matrix.host.name, 'linux-') # FIXME: Do for all
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: hosttools_${{ matrix.host.name }}
path: |
Expand Down Expand Up @@ -1020,13 +1020,13 @@ jobs:
- name: Check out source code
if: ${{ github.event_name != 'pull_request_target' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Check out source code (pull request)
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
Expand All @@ -1050,7 +1050,7 @@ jobs:
sha256sum ${ARCHIVE_FILE} > sha256.sum
- name: Upload CMake package build artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: cmake_${{ matrix.host.name }}
path: |
Expand Down Expand Up @@ -1110,21 +1110,21 @@ jobs:
- name: Check out source code
if: ${{ github.event_name != 'pull_request_target' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: repository
persist-credentials: false

- name: Check out source code (pull request)
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
path: repository
persist-credentials: false

- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
# NOTE: This downloads all build artifacts, including the toolchains and host tools for
# the irrelevant hosts, because the download-artifact action does not support
Expand Down Expand Up @@ -1239,7 +1239,7 @@ jobs:
sha256sum ${ARCHIVE_NAME}.${EXT} ${ARCHIVE_NAME}_minimal.${EXT} > sha256.sum
- name: Upload distribution bundle
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.BUNDLE_ARCHIVE_NAME }}
path: |
Expand Down Expand Up @@ -1273,7 +1273,7 @@ jobs:
steps:
- name: Set up Python
if: ${{ runner.os == 'Windows' }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
# Force Python 3.10 because the twister is not compatible with a Python
# version lower than 3.8 on Windows.
Expand Down Expand Up @@ -1357,7 +1357,7 @@ jobs:
echo "VENV_ACTIVATE=${VENV_ACTIVATE}" >> $GITHUB_ENV
- name: Download version information
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: version
path: artifacts
Expand All @@ -1376,7 +1376,7 @@ jobs:
echo "BUNDLE_DIR=${BUNDLE_DIR}" >> $GITHUB_ENV
- name: Download distribution bundle
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.BUNDLE_NAME }}
path: artifacts
Expand Down Expand Up @@ -1611,7 +1611,7 @@ jobs:
- name: Publish test results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test_${{ matrix.testenv.name }}_${{ matrix.subset }}
if-no-files-found: ignore
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
rm -rf ${GITHUB_WORKSPACE}/*
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: artifacts

Expand Down Expand Up @@ -63,37 +63,37 @@ jobs:
# into the runner memory at once and this may cause the runner instance to
# run out of memory (see the GitHub issue #520).
- name: Upload release assets (host tools)
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
assets/hosttools_*
- name: Upload release assets (Linux toolchains)
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
assets/toolchain_linux*
- name: Upload release assets (macOS toolchains)
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
assets/toolchain_macos*
- name: Upload release assets (Windows toolchains)
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
assets/toolchain_windows*
- name: Upload release assets (Distribution bundles)
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
assets/${{ env.BUNDLE_PREFIX }}-*
- name: Upload release assets (checksum)
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
md5.sum
Expand Down

0 comments on commit 61625aa

Please sign in to comment.