aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2023-03-28 17:41:34 +0000
committerGitHub <noreply@github.com>2023-03-28 17:41:34 +0000
commitad4c3e1f3c3c2df2aced4f6a0a58072705ee4561 (patch)
tree51a484b7cb5933a28ec29a9e8d6ad07d3369066e
parenta01bd76e5c10eba8bc3481eb7552fb8feab79f91 (diff)
parent1dd7154a1200eb9471cf71af36d7f31c106b1698 (diff)
downloadriscv-openocd-ad4c3e1f3c3c2df2aced4f6a0a58072705ee4561.zip
riscv-openocd-ad4c3e1f3c3c2df2aced4f6a0a58072705ee4561.tar.gz
riscv-openocd-ad4c3e1f3c3c2df2aced4f6a0a58072705ee4561.tar.bz2
Merge 1dd7154a1200eb9471cf71af36d7f31c106b1698 into a01bd76e5c10eba8bc3481eb7552fb8feab79f91openocd64-ad4c3e1
-rw-r--r--.github/workflows/linux-build.yml28
1 files changed, 24 insertions, 4 deletions
diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml
index f566d8c..2e91ba5 100644
--- a/.github/workflows/linux-build.yml
+++ b/.github/workflows/linux-build.yml
@@ -22,7 +22,6 @@ jobs:
- run: file src/openocd | grep 32-bit
- run: src/openocd --version
-
# 64-bit, gcc
build64:
runs-on: ubuntu-latest
@@ -32,12 +31,33 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v2
+ - name: Configure environment
+ run: |
+ TAG=$(git rev-parse --short HEAD)
+ echo "TAG=$TAG" >> $GITHUB_OUTPUT
+ echo "NAME=openocd64-$TAG" >> $GITHUB_ENV
- name: Install required packages (apt-get)
run: |
sudo apt-get update
sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev
- run: ./bootstrap
- - run: ./configure --enable-remote-bitbang --enable-jtag_vpi --enable-ftdi-cjtag
+ - run: ./configure --enable-remote-bitbang --enable-jtag_vpi --enable-ftdi-cjtag --prefix /tmp/${{ env.NAME }}
- run: make -j`nproc`
- - run: file src/openocd | grep 64-bit
- - run: src/openocd --version
+ - name: Check that we built something
+ run: |
+ file src/openocd | grep 64-bit
+ src/openocd --version
+ - name: Package
+ run: |
+ make install
+ ls -l /tmp
+ tar zcvf ${{ env.NAME }}.tgz -C /tmp ${{ env.NAME }}
+ - name: Create Release
+ uses: ncipollo/release-action@v1
+ with:
+ tag: ${{ env.NAME }}
+ commit: ${{ github.sha }}
+ draft: false
+ prerelease: true
+ artifacts: ${{ env.NAME }}.tgz
+ token: ${{ secrets.GITHUB_TOKEN }}