-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tom Hayward <tom@tomh.us>
- Loading branch information
Showing
1 changed file
with
68 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Build | ||
on: | ||
pull_request: | ||
push: | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-16.04 | ||
timeout-minutes: 20 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get install -y \ | ||
build-essential \ | ||
dahdi-source \ | ||
dahdi-linux \ | ||
gcc-4.9 \ | ||
g++-4.9 \ | ||
libasound2-dev \ | ||
libblkid-dev \ | ||
libss7-dev \ | ||
libusb-dev | ||
- name: Build DAHDI | ||
run: | | ||
set -x | ||
git clone https://github.com/pttlink/ASL-DAHDI-PATCHED-2.11.1.git | ||
cd ASL-DAHDI-PATCHED-2.11.1 | ||
make distclean | ||
make -j$(nproc) MODULES_EXTRA="dahdi_dummy" | ||
sudo make -j$(nproc) install MODULES_EXTRA="dahdi_dummy" | ||
- name: Build Asterisk | ||
run: | | ||
set -x | ||
cd asterisk | ||
./bootstrap.sh | ||
make distclean | ||
./configure CXX=g++-4.9 CC=gcc-4.9 LDFLAGS="-zmuldefs -lasound" CFLAGS="-Wno-unused -Wno-all -Wno-int-conversion" | ||
make menuselect.makeopts | ||
# menuselect/menuselect \ | ||
# --enable app_rpt \ | ||
# --enable chan_beagle \ | ||
# --enable chan_tlb \ | ||
# --enable chan_usrp \ | ||
# --enable chan_rtpdir \ | ||
# --enable chan_usbradio \ | ||
# --enable chan_simpleusb \ | ||
# --enable chan_echolink \ | ||
# --enable app_gps \ | ||
# --enable chan_voter \ | ||
# --enable radio-tune-menu \ | ||
# --enable simpleusb-tune-menu \ | ||
# menuselect.makeopts | ||
make -j$(nproc) | ||
- name: Print failure | ||
if: ${{ failure() }} | ||
run: | | ||
set -x | ||
gcc-4.9 --version | ||
git status | ||
- name: Archive config.log | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: config.log | ||
path: asterisk/config.log | ||
retention-days: 5 |