Skip to content

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

chore: remove third-party notice from debian/copyright

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

Workflow file for this run

# .github/workflows/build-deb.yml
name: Build Debian Package
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# 1. Checkout code with full history for versioning
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
# 2. Set up the Go environment
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
# 3. Install all necessary packaging tools
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y debmake devscripts dh-golang
# 4. Run debmake to create the debian/ directory and its files
- name: Run debmake to create packaging files
run: debmake -y -ccc
# 5. (NEW) Verify that the debian/ directory was created
- name: Verify debian/ directory existence
run: |
if [ ! -d "debian" ]; then
echo "Error: debian/ directory was not created by debmake."
exit 1
fi
echo "Success: debian/ directory created."
ls -l
# 6. Create the watch file for checking new upstream versions
- name: Create debian/watch file
run: |
echo 'version=4' > debian/watch
echo 'opts="filenamemangle=s/.+\/v?(\d+\.\d+\.\d+)\.tar\.gz/arduino-cli-$1.tar.gz/" \' >> debian/watch
echo ' https://github.com/arduino/arduino-cli/tags .*/v?(\d+\.\d+\.\d+)\.tar\.gz' >> debian/watch
# 7. Create a proper changelog with the correct version
- name: Create changelog with dch
run: |