Preserve artifact of Linux build, too.

That can be handy to e-mail to people who don't have a build setup.

Change-Id: I7b7e2d6f0033edf71f53211168f74b80ada64b97
Signed-off-by: Tim Newsome <tim@sifive.com>
This commit is contained in:
Tim Newsome 2023-03-28 09:57:53 -07:00
parent a01bd76e5c
commit a1fa29d209
1 changed files with 23 additions and 4 deletions

View File

@ -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,32 @@ 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
artifacts: ${{ env.NAME }}.tgz
token: ${{ secrets.GITHUB_TOKEN }}