diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 9a3c74a7..8a8486a2 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -15,7 +15,7 @@ jobs: with: check-path: 'src' - linux: + docker: runs-on: ubuntu-latest steps: - name: checkout @@ -57,3 +57,37 @@ jobs: - name: build shell: msys2 {0} run: cmake -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build + + linux: + strategy: + matrix: + image: + - "debian:12" + - "ubuntu:22.04" + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: create ${{ matrix.image }} directory + run: | + mkdir debian + cp -r package/debian/* debian + cp README.md debian/candy-docs.docs + cp LICENSE debian/copyright + git fetch --tags origin + - name: setup artifact name + run: | + IMAGE_NAME=${{ matrix.image }} + echo "ARTIFACT_NAME=${IMAGE_NAME//:/}" >> $GITHUB_ENV + - name: build ${{ env.ARTIFACT_NAME }} deb + uses: jtdor/build-deb-action@v1 + env: + DEB_BUILD_OPTIONS: noautodbgsym + EMAIL: yangmame@icloud.com + USER: YangMame + EDITOR: true + with: + docker-image: ${{ matrix.image }} + buildpackage-opts: --build=binary --no-sign + extra-build-deps: git-buildpackage + before-build-hook: dch --package candy -v "$(git tag -l | tail -n1 | sed 's/v//g')+${{ env.ARTIFACT_NAME }}" -D stable --create "CI BUILD" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4073c6b4..eda84771 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -137,7 +137,6 @@ jobs: buildpackage-opts: --build=binary --no-sign extra-build-deps: git-buildpackage before-build-hook: dch --package candy -v "$(git tag -l | tail -n1 | sed 's/v//g')+${{ env.ARTIFACT_NAME }}" -D stable --create "CI BUILD" - - name: upload artifact uses: actions/upload-artifact@v4 with: