Skip to content

Commit

Permalink
合并请求检查低版本发行版
Browse files Browse the repository at this point in the history
  • Loading branch information
lanthora committed May 17, 2024
1 parent 0bc4396 commit e177027
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
36 changes: 35 additions & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
check-path: 'src'

linux:
docker:
runs-on: ubuntu-latest
steps:
- name: checkout
Expand Down Expand Up @@ -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: [email protected]
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"
1 change: 0 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e177027

Please sign in to comment.