-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #935 from riscv/from_upstream
Merge down up to 0384fe5 from upstream.
- Loading branch information
Showing
33 changed files
with
857 additions
and
1,066 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# Copyright (C) 2020 by Tarek BOUCHKATI <[email protected]> | ||
|
||
on: pull_request | ||
on: push | ||
|
||
name: OpenOCD Snapshot | ||
|
||
|
@@ -30,7 +30,7 @@ jobs: | |
echo "LIBUSB1_SRC=$PWD/libusb-${LIBUSB1_VER}" >> $GITHUB_ENV | ||
- name: Prepare hidapi | ||
env: | ||
HIDAPI_VER: 0.11.2 | ||
HIDAPI_VER: 0.13.1 | ||
run: | | ||
mkdir -p $DL_DIR && cd $DL_DIR | ||
wget "https://github.com/libusb/hidapi/archive/hidapi-${HIDAPI_VER}.tar.gz" | ||
|
@@ -56,6 +56,16 @@ jobs: | |
wget "https://github.com/aquynh/capstone/archive/${CAPSTONE_VER}.tar.gz" | ||
tar -xzf ${CAPSTONE_VER}.tar.gz | ||
echo "CAPSTONE_SRC=$PWD/capstone-${CAPSTONE_VER}" >> $GITHUB_ENV | ||
- name: Prepare libjaylink | ||
env: | ||
LIBJAYLINK_VER: 0.3.1 | ||
run: | | ||
mkdir -p $DL_DIR && cd $DL_DIR | ||
wget https://gitlab.zapb.de/libjaylink/libjaylink/-/archive/${LIBJAYLINK_VER}/libjaylink-${LIBJAYLINK_VER}.tar.gz | ||
tar -xzf libjaylink-${LIBJAYLINK_VER}.tar.gz | ||
cd libjaylink-${LIBJAYLINK_VER} | ||
./autogen.sh | ||
echo "LIBJAYLINK_SRC=$PWD" >> $GITHUB_ENV | ||
- name: Package OpenOCD for windows | ||
env: | ||
MAKE_JOBS: 2 | ||
|
@@ -64,7 +74,7 @@ jobs: | |
HIDAPI_CONFIG: --enable-shared --disable-static --disable-testgui | ||
LIBFTDI_CONFIG: -DSTATICLIBS=OFF -DEXAMPLES=OFF -DFTDI_EEPROM=OFF | ||
CAPSTONE_CONFIG: "CAPSTONE_BUILD_CORE_ONLY=yes CAPSTONE_STATIC=yes CAPSTONE_SHARED=no" | ||
CAPSTONE_CFLAGS: -I$(CAPSTONE_SRC)/include/capstone | ||
LIBJAYLINK_CONFIG: --enable-shared --disable-static | ||
run: | | ||
# check if there is tag pointing at HEAD, otherwise take the HEAD SHA-1 as OPENOCD_TAG | ||
OPENOCD_TAG="`git tag --points-at HEAD`" | ||
|
@@ -83,16 +93,31 @@ jobs: | |
# add missing dlls | ||
cd $HOST-root/usr | ||
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. | ||
cp `$HOST-gcc --print-file-name=libgcc_s_sjlj-1.dll` ./bin/ | ||
# prepare the artifact | ||
ARTIFACT="openocd-${OPENOCD_TAG}-${HOST}.tar.gz" | ||
tar -czf $ARTIFACT * | ||
echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_ENV | ||
echo "IS_PRE_RELEASE=$IS_PRE_RELEASE" >> $GITHUB_ENV | ||
echo "ARTIFACT_PATH=$PWD/$ARTIFACT" >> $GITHUB_ENV | ||
echo "ARTIFACT_NAME=openocd-windows-${OPENOCD_TAG}" >> $GITHUB_ENV | ||
- name: Publish OpenOCD packaged for windows | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ env.ARTIFACT_NAME }} | ||
path: ${{ env.ARTIFACT_PATH }} | ||
- name: Delete 'latest' Release | ||
uses: dev-drprasad/[email protected] | ||
with: | ||
delete_release: true | ||
tag_name: ${{ env.RELEASE_NAME }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag: ${{ env.RELEASE_NAME }} | ||
commit: ${{ github.sha }} | ||
draft: false | ||
artifacts: ${{ env.ARTIFACT_PATH }} | ||
prerelease: ${{ env.IS_PRE_RELEASE }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.