github/workflow: fix warnings for github actions

- update runner to ubuntu-latest
- pass GITHUB_TOKEN to delete-tag-and-release as input

Change-Id: I83d69cfd7af7c44e67b1115ac843a0b41d6f87b9
Signed-off-by: Samuel Obuch <samuel.obuch@espressif.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8756
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
This commit is contained in:
Samuel Obuch
2025-02-13 14:28:27 +01:00
committed by Antonio Borneo
parent d567824f2a
commit afbd01b0a4

View File

@@ -8,7 +8,7 @@ name: OpenOCD Snapshot
jobs: jobs:
package: package:
runs-on: [ubuntu-20.04] runs-on: [ubuntu-latest]
env: env:
DL_DIR: ../downloads DL_DIR: ../downloads
BUILD_DIR: ../build BUILD_DIR: ../build
@@ -102,8 +102,8 @@ jobs:
# add missing dlls # add missing dlls
cd $HOST-root/usr cd $HOST-root/usr
cp `$HOST-gcc --print-file-name=libwinpthread-1.dll` ./bin/ cp `$HOST-gcc --print-file-name=libwinpthread-1.dll` ./bin/
# required by libftdi1.dll. For the gcc-mingw-10.3.x or later "libgcc_s_dw2-1.dll" will need to be copied. # required by libftdi1.dll
cp `$HOST-gcc --print-file-name=libgcc_s_sjlj-1.dll` ./bin/ cp `$HOST-gcc --print-file-name=libgcc_s_dw2-1.dll` ./bin/
# prepare the artifact # prepare the artifact
ARTIFACT="openocd-${OPENOCD_TAG}-${HOST}.tar.gz" ARTIFACT="openocd-${OPENOCD_TAG}-${HOST}.tar.gz"
tar -czf $ARTIFACT * tar -czf $ARTIFACT *
@@ -119,8 +119,7 @@ jobs:
with: with:
delete_release: true delete_release: true
tag_name: ${{ env.RELEASE_NAME }} tag_name: ${{ env.RELEASE_NAME }}
env: github_token: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release - name: Create Release
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with: