Skip to content

chore: remove third-party notice from debian/copyright #8

chore: remove third-party notice from debian/copyright

chore: remove third-party notice from debian/copyright #8

Workflow file for this run

# .github/workflows/build-deb.yml
name: Build Debian Package
# This action runs on every push to the main branch
on:
push:
branches: [ "main", "deb_package_pipeline" ]
pull_request:
branches: [ "main", "deb_package_pipeline" ]
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.25' # 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
- name: Run debmake to create packaging files
run: debmake -t go -y -ccc
- name: Create changelog with dch
run: |
UPSTREAM_VERSION=$(git describe --tags --abbrev=0 | sed 's/^v//')
dch --create --package arduino-cli --newversion "${UPSTREAM_VERSION}-1" "Initial release."
# 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