release 2.1.11ubuntu7 #5
Workflow file for this run
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: Pull Request | |
on: pull_request | |
jobs: | |
checkpatch_review: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Calculate PR commits + 1' | |
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> $GITHUB_ENV | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: ${{ env.PR_FETCH_DEPTH }} | |
- name: Run checkpatch review | |
uses: webispy/checkpatch-action@v9 | |
ubuntu: | |
runs-on: ubuntu-latest | |
needs: [checkpatch_review] | |
strategy: | |
matrix: | |
target: | |
[ | |
bionic_x64, | |
bionic_arm64, | |
bionic_armhf, | |
focal_x64, | |
focal_arm64, | |
focal_armhf, | |
jammy_x64, | |
jammy_arm64, | |
jammy_armhf, | |
] | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Build | |
run: | | |
TARGET=${{ matrix.target }} | |
DIST=(${TARGET//_/ }) | |
ln -s packaging/${DIST[0]} debian | |
ls -l | |
cd .. | |
chmod 777 $PWD | |
chmod 777 $PWD/nugu-epd | |
echo "Build debian package" | |
docker run -t --rm --privileged -v $PWD:$PWD -w $PWD/nugu-epd \ | |
-v /var/lib/schroot/chroots \ | |
nugulinux/buildenv:${{ matrix.target }} sbuild.sh | |
ls -l | |
sudo mv *.deb nugu-epd/ | |
build_mac: | |
runs-on: macos-latest | |
needs: [checkpatch_review] | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Build | |
run: | | |
mkdir build && cd build | |
cmake .. | |
make -j3 | |
DESTDIR=tmp make install |