diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d1db88c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Release + +# Package + publish on a version tag. The matrix lives here (the caller owns it); +# each leg calls the single-combo reusable helper. The publish feed is derived from +# distro-release/distro-channel. The tag must equal the avocado.yaml version. +on: + push: + tags: + - '[0-9]+.[0-9]+.[0-9]+' + - '[0-9]+.[0-9]+.[0-9]+-*' + workflow_dispatch: + +jobs: + publish: + strategy: + fail-fast: false + matrix: + include: + - { target: qemux86-64, distro-release: "2026", distro-channel: edge } + - { target: qemux86-64, distro-release: "2024", distro-channel: edge-next } + uses: avocado-linux/actions/.github/workflows/extension-release.yml@v1 + with: + target: ${{ matrix.target }} + distro-release: ${{ matrix.distro-release }} + distro-channel: ${{ matrix.distro-channel }} + secrets: + connect-token: ${{ secrets.AVOCADO_CONNECT_TOKEN }} + connect-org: ${{ secrets.AVOCADO_CONNECT_ORG }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..3a42642 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +name: Test + +# "Does it build" check on PRs. The matrix lives here (the caller owns it); each leg +# calls the single-combo reusable helper. Add rows for more targets/feeds as needed. +on: + pull_request: + workflow_dispatch: + +jobs: + build: + strategy: + fail-fast: false + matrix: + include: + - { target: qemux86-64, distro-release: "2024", distro-channel: edge-next } + uses: avocado-linux/actions/.github/workflows/extension-test.yml@v1 + with: + target: ${{ matrix.target }} + distro-release: ${{ matrix.distro-release }} + distro-channel: ${{ matrix.distro-channel }} + repo-url: ${{ matrix.repo-url }} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..767995f --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,12 @@ +# Changelog + +All notable changes to avocado-ext-dev are documented in this file. +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [0.1.0] + +### Added +- Initial release: Avocado development tools. +- CI via the shared `avocado-linux/actions` reusable workflows: PR build check + (`test.yml`) and tag-driven package + publish to the Avocado feed (`release.yml`). diff --git a/avocado.yaml b/avocado.yaml index 3a4249a..dabf83b 100644 --- a/avocado.yaml +++ b/avocado.yaml @@ -2,7 +2,7 @@ supported_targets: '*' extensions: avocado-ext-dev: - version: 2024.1.0 + version: 0.1.0 release: r0 summary: Avocado development tools description: Avocado development tools @@ -50,4 +50,4 @@ extensions: nativesdk-rsync: '*' sdk: - image: docker.io/avocadolinux/sdk:{{ env.AVOCADO_DISTRO_RELEASE }}-{{ env.AVOCADO_DISTRO_CHANNEL }} + image: docker.io/avocadolinux/sdk:{{ env.AVOCADO_DISTRO_RELEASE }}