Ubuntu 24.04環境でdkms後処理スクリプトが本来削除すべきではない99-px4video.rulesとit930x-firmware.binを削除してしまう問題を修正 #2
Workflow file for this run
This file contains hidden or 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: Build and Check Debian Package | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| jobs: | |
| build: | |
| name: Build and Check Debian Package | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: ubuntu:20.04 | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install DKMS | |
| run: apt-get update && apt-get install -y -q --no-install-recommends debhelper devscripts dh-exec dkms dpkg | |
| shell: bash | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| - name: Build Debian package | |
| run: dkms mkdeb --source-only | |
| shell: bash | |
| - name: Check artifacts | |
| run: ls -l ../*.deb | |
| shell: bash | |
| - name: Check install | |
| run: dpkg -i $(ls -1 ../*.deb | head -n 1) | |
| shell: bash | |
| - name: Check dkms install | |
| run: apt-get install -y linux-headers-virtual | |
| shell: bash | |
| - name: Check dkms result | |
| run: ls -l /lib/modules/*/updates/dkms/px4_drv.ko* | |
| shell: bash |