chore: remove third-party notice from debian/copyright #16
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
| # .github/workflows/build-deb.yml | |
| name: Build Debian Package | |
| # This action runs on every push to the main branch | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| # Use the latest version of Ubuntu as our build environment | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 1. Check out your repository's code | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| # 2. Set up the Go environment needed by arduino-cli | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' # Check go.mod for the correct version | |
| # 3. Install Debian packaging tools | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y debmake devscripts | |
| # 4. Generate the initial debian/ directory | |
| # The -y flag accepts defaults, useful for automation | |
| - name: Run debmake to create packaging files | |
| run: debmake -g -y | |
| # 5. Build the .deb package | |
| # The flags -us -uc mean "unsigned source" and "unsigned changes", | |
| # which is necessary because we don't have a GPG key in the runner. | |
| - name: Build the package | |
| run: debuild -us -uc | |
| # 6. Upload the generated .deb file as a build artifact | |
| # The .deb file is created in the parent directory, hence the ../ | |
| - name: Upload .deb package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: arduino-cli-deb-package | |
| path: ../*.deb |