Bump GitHub actions to latest versions - https://github.com/riscv-collab/riscv-openocd/issues/1048
This commit is contained in:
parent
3991492cc1
commit
5c80ac8c57
|
@ -10,7 +10,7 @@ jobs:
|
||||||
BUILD_DIR: ../build
|
BUILD_DIR: ../build
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Checkout Base
|
- name: Checkout Base
|
||||||
|
|
|
@ -11,7 +11,7 @@ jobs:
|
||||||
CC: clang
|
CC: clang
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Install required packages (apt-get)
|
- name: Install required packages (apt-get)
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
@ -30,7 +30,7 @@ jobs:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Configure environment
|
- name: Configure environment
|
||||||
run: |
|
run: |
|
||||||
TAG=$(git rev-parse --short HEAD)
|
TAG=$(git rev-parse --short HEAD)
|
||||||
|
@ -55,7 +55,7 @@ jobs:
|
||||||
make install
|
make install
|
||||||
tar zcvf ${{ env.NAME }}.tgz -C /tmp ${{ env.NAME }}
|
tar zcvf ${{ env.NAME }}.tgz -C /tmp ${{ env.NAME }}
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ env.NAME }}
|
name: ${{ env.NAME }}
|
||||||
path: ${{ env.NAME }}.tgz
|
path: ${{ env.NAME }}.tgz
|
||||||
|
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install autotools-dev autoconf automake libtool pkg-config cmake texinfo texlive g++-mingw-w64-i686
|
sudo apt-get install autotools-dev autoconf automake libtool pkg-config cmake texinfo texlive g++-mingw-w64-i686
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v4
|
||||||
- run: ./bootstrap
|
- run: ./bootstrap
|
||||||
- name: Prepare libusb1
|
- name: Prepare libusb1
|
||||||
env:
|
env:
|
||||||
|
@ -102,11 +102,11 @@ jobs:
|
||||||
echo "IS_PRE_RELEASE=$IS_PRE_RELEASE" >> $GITHUB_ENV
|
echo "IS_PRE_RELEASE=$IS_PRE_RELEASE" >> $GITHUB_ENV
|
||||||
echo "ARTIFACT_PATH=$PWD/$ARTIFACT" >> $GITHUB_ENV
|
echo "ARTIFACT_PATH=$PWD/$ARTIFACT" >> $GITHUB_ENV
|
||||||
- name: Publish OpenOCD packaged for windows
|
- name: Publish OpenOCD packaged for windows
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ env.ARTIFACT_PATH }}
|
path: ${{ env.ARTIFACT_PATH }}
|
||||||
- name: Delete 'latest' Release
|
- name: Delete 'latest' Release
|
||||||
uses: dev-drprasad/delete-tag-and-release@v0.2.1
|
uses: dev-drprasad/delete-tag-and-release@v1.1
|
||||||
with:
|
with:
|
||||||
delete_release: true
|
delete_release: true
|
||||||
tag_name: ${{ env.RELEASE_NAME }}
|
tag_name: ${{ env.RELEASE_NAME }}
|
||||||
|
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
name: Test debug (Ubuntu)
|
name: Test debug (Ubuntu)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: |
|
run: |
|
||||||
|
@ -47,14 +47,14 @@ jobs:
|
||||||
|
|
||||||
- name: Get the toolchain from cache (if available)
|
- name: Get the toolchain from cache (if available)
|
||||||
id: cache-toolchain
|
id: cache-toolchain
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /opt/riscv/toolchain
|
path: /opt/riscv/toolchain
|
||||||
key: "toolchain-${{env.TOOLCHAIN_URL}}"
|
key: "toolchain-${{env.TOOLCHAIN_URL}}"
|
||||||
|
|
||||||
- name: Get spike from cache (if available)
|
- name: Get spike from cache (if available)
|
||||||
id: cache-spike
|
id: cache-spike
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /opt/riscv/spike
|
path: /opt/riscv/spike
|
||||||
key: "spike-${{env.SPIKE_COMMIT}}"
|
key: "spike-${{env.SPIKE_COMMIT}}"
|
||||||
|
@ -130,7 +130,7 @@ jobs:
|
||||||
- name: Archive test logs
|
- name: Archive test logs
|
||||||
# Proceed even if there was a failed test
|
# Proceed even if there was a failed test
|
||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: test-logs
|
name: test-logs
|
||||||
path: riscv-tests/debug/logs
|
path: riscv-tests/debug/logs
|
||||||
|
|
Loading…
Reference in New Issue