diff options
author | Jan Matyas <50193733+JanMatCodasip@users.noreply.github.com> | 2022-03-17 18:01:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-17 10:01:34 -0700 |
commit | f732956b031cdab47e8784ee01ea9c8d5e185e6e (patch) | |
tree | 665128de8c5da54bd4d3459139fd8fabdc83fb47 | |
parent | 9e097d0fc423f1c6a1a198e660224bb951a5c2bb (diff) | |
download | riscv-openocd-f732956b031cdab47e8784ee01ea9c8d5e185e6e.zip riscv-openocd-f732956b031cdab47e8784ee01ea9c8d5e185e6e.tar.gz riscv-openocd-f732956b031cdab47e8784ee01ea9c8d5e185e6e.tar.bz2 |
Fix & improvements in Linux Build workflow (#686)
* Fix of Linux Build workflow: add missing apt-get update
Change-Id: I69cd1693b2ad5405574affe5b85e5c4c9c76e278
Signed-off-by: Jan Matyas <matyas@codasip.com>
* Minor improvements in Linux Build workflow
- Use parallel build (use -j for make)
- Check that the resulting OpenOCD executable can actually be launched (call openocd --version)
Change-Id: I6b8c56688a39cae436986954fbd517082dc8160d
Signed-off-by: Jan Matyas <matyas@codasip.com>
-rw-r--r-- | .github/workflows/linux-build.yml | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index 74028d5..9664ca6 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -12,11 +12,15 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v2 - - run: sudo apt-get install clang gcc-multilib + - name: Install required packages (apt-get) + run: | + sudo apt-get update + sudo apt-get install clang gcc-multilib - run: ./bootstrap - run: ./configure --enable-remote-bitbang --enable-jtag_vpi --disable-target64 - - run: make + - run: make -j`nproc` - run: file src/openocd | grep 32-bit + - run: src/openocd --version # 64-bit, gcc @@ -28,8 +32,12 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v2 - - run: sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev + - 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-oscan1 - - run: make + - run: make -j`nproc` - run: file src/openocd | grep 64-bit + - run: src/openocd --version |