|
|
|
@ -19,10 +19,10 @@ jobs:
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Get app name
|
|
|
|
- name: Get app name
|
|
|
|
id: get_appname
|
|
|
|
id: get_appname
|
|
|
|
run: echo ::set-output name=APPNAME::${{ github.event.repository.name }}
|
|
|
|
run: echo APPNAME=${{ github.event.repository.name }} >> $GITHUB_OUTPUT
|
|
|
|
- name: Get version
|
|
|
|
- name: Get version
|
|
|
|
id: get_version
|
|
|
|
id: get_version
|
|
|
|
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
|
|
|
run: echo VERSION=${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT
|
|
|
|
|
|
|
|
|
|
|
|
create-release:
|
|
|
|
create-release:
|
|
|
|
needs:
|
|
|
|
needs:
|
|
|
|
@ -34,12 +34,10 @@ jobs:
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Create release
|
|
|
|
- name: Create release
|
|
|
|
id: create_release
|
|
|
|
id: create_release
|
|
|
|
uses: actions/create-release@v1
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
env:
|
|
|
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
tag_name: ${{ needs.setup.outputs.VERSION }}
|
|
|
|
tag_name: ${{ needs.setup.outputs.VERSION }}
|
|
|
|
release_name: Release ${{ needs.setup.outputs.VERSION }}
|
|
|
|
name: Release ${{ needs.setup.outputs.VERSION }}
|
|
|
|
draft: true
|
|
|
|
draft: true
|
|
|
|
prerelease: false
|
|
|
|
prerelease: false
|
|
|
|
|
|
|
|
|
|
|
|
@ -60,12 +58,24 @@ jobs:
|
|
|
|
submodules: recursive
|
|
|
|
submodules: recursive
|
|
|
|
- name: Install dependencies
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
sudo apt-get install -y git build-essential cmake g++-arm-linux-gnueabihf gcc-arm-linux-gnueabihf g++-aarch64-linux-gnu libasio-dev
|
|
|
|
sudo apt-get install -y git build-essential cmake \
|
|
|
|
|
|
|
|
g++-arm-linux-gnueabihf \
|
|
|
|
|
|
|
|
gcc-arm-linux-gnueabihf \
|
|
|
|
|
|
|
|
g++-aarch64-linux-gnu \
|
|
|
|
|
|
|
|
libasio-dev
|
|
|
|
sudo git clone --recurse-submodules https://github.com/raspberrypi/tools.git /opt/tools
|
|
|
|
sudo git clone --recurse-submodules https://github.com/raspberrypi/tools.git /opt/tools
|
|
|
|
- name: Build
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
sed -i 's/3.18.4/3.16.3/g' CMakeLists.txt
|
|
|
|
if [[ "${{ matrix.arch }}" == "RPI_ARM" ]]; then
|
|
|
|
|
|
|
|
sudo sed -i 's/^# deb-src/deb-src/g' /etc/apt/sources.list
|
|
|
|
|
|
|
|
sudo apt-get update
|
|
|
|
|
|
|
|
sudo apt-get source asio
|
|
|
|
|
|
|
|
cmake -DENABLE_DMR=1 -DENABLE_P25=1 -DENABLE_NXDN=1 -DCROSS_COMPILE_${{ matrix.arch }}=1 \
|
|
|
|
|
|
|
|
-DWITH_ASIO="$(realpath -e $(find . -maxdepth 1 -type d -iname 'asio*'))" .
|
|
|
|
|
|
|
|
else
|
|
|
|
cmake -DENABLE_DMR=1 -DENABLE_P25=1 -DENABLE_NXDN=1 -DCROSS_COMPILE_${{ matrix.arch }}=1 .
|
|
|
|
cmake -DENABLE_DMR=1 -DENABLE_P25=1 -DENABLE_NXDN=1 -DCROSS_COMPILE_${{ matrix.arch }}=1 .
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
make
|
|
|
|
- name: Package
|
|
|
|
- name: Package
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
|