Soapy: Change time interval in AXI DMAC checks #7
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
name: CLI tool build tests | |
on: | |
pull_request: | |
paths: | |
- "software/cli/**" | |
branches: [ "v2" ] | |
push: | |
paths: | |
- "software/cli/**" | |
branches: [ "v2" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- arch: amd64 | |
- arch: arm64 | |
steps: | |
- name: Update install | |
run: | |
sudo apt-get update | |
timeout-minutes: 5 | |
- name: Install build dependencies | |
run: | | |
if [[ "${{matrix.arch}}" == "amd64" ]]; then | |
# Native | |
sudo apt-get install build-essential | |
elif [[ "${{matrix.arch}}" == "arm64" ]]; then | |
# 64-bit ARM | |
sudo apt-get install crossbuild-essential-arm64 | |
fi | |
timeout-minutes: 5 | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
clean: true | |
- name: Build CLI tool (${{matrix.arch}}) | |
run: | | |
cd ${{github.workspace}}/software/cli | |
if [[ "${{matrix.arch}}" == "amd64" ]]; then | |
# Native | |
make | |
elif [[ "${{matrix.arch}}" == "arm64" ]]; then | |
# 64-bit ARM | |
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- | |
fi | |
- name: Make deb package (${{matrix.arch}}) | |
run: | | |
mkdir deb | |
mkdir deb/DEBIAN | |
cp ${{github.workspace}}/software/cli/.deb/* deb/DEBIAN/ | |
echo "Architecture: ${{matrix.arch}}" >> deb/DEBIAN/control | |
echo "" >> deb/DEBIAN/control | |
mkdir -p deb/usr/bin | |
cp ${{github.workspace}}/software/cli/bin/icyradio* deb/usr/bin | |
dpkg-deb --build --root-owner-group ./deb ${{github.workspace}}/software/cli/icyradio_${{matrix.arch}}.deb | |
- name: Upload results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cli_tool_${{matrix.arch}} | |
path: | | |
${{github.workspace}}/software/cli/bin/icyradio* | |
${{github.workspace}}/software/cli/icyradio_${{matrix.arch}}.deb | |
retention-days: 30 |