2021-07-27 13:13:30 -05:00
|
|
|
on: pull_request
|
2021-07-12 13:21:46 -05:00
|
|
|
|
|
|
|
name: Linux Build
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
# 32-bit, clang
|
|
|
|
build32:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
CFLAGS: -m32
|
|
|
|
CC: clang
|
|
|
|
steps:
|
|
|
|
- name: Checkout Code
|
|
|
|
uses: actions/checkout@v2
|
2022-03-17 12:01:34 -05:00
|
|
|
- name: Install required packages (apt-get)
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install clang gcc-multilib
|
2021-07-12 13:21:46 -05:00
|
|
|
- run: ./bootstrap
|
2021-12-13 15:35:35 -06:00
|
|
|
- run: ./configure --enable-remote-bitbang --enable-jtag_vpi --disable-target64
|
2022-03-17 12:01:34 -05:00
|
|
|
- run: make -j`nproc`
|
2021-07-12 13:21:46 -05:00
|
|
|
- run: file src/openocd | grep 32-bit
|
2022-03-17 12:01:34 -05:00
|
|
|
- run: src/openocd --version
|
2021-07-12 13:21:46 -05:00
|
|
|
|
|
|
|
|
|
|
|
# 64-bit, gcc
|
|
|
|
build64:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
CFLAGS: -m64
|
|
|
|
CC: gcc
|
|
|
|
steps:
|
|
|
|
- name: Checkout Code
|
|
|
|
uses: actions/checkout@v2
|
2022-03-17 12:01:34 -05:00
|
|
|
- name: Install required packages (apt-get)
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev
|
2021-07-12 13:21:46 -05:00
|
|
|
- run: ./bootstrap
|
2021-12-13 15:24:56 -06:00
|
|
|
- run: ./configure --enable-remote-bitbang --enable-jtag_vpi --enable-ftdi-oscan1
|
2022-03-17 12:01:34 -05:00
|
|
|
- run: make -j`nproc`
|
2021-07-12 13:21:46 -05:00
|
|
|
- run: file src/openocd | grep 64-bit
|
2022-03-17 12:01:34 -05:00
|
|
|
- run: src/openocd --version
|