Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .github/workflows/change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,9 @@ jobs:
|scene opengl|opengl shadow|no crash reinit compositor|buffer size change\
|no crash aurorae destroy deco|slidingpopups|scripted effects|window open close animation\
|subspace switching animation|minimize animation'"

package:
uses: ./.github/workflows/package.yml
needs: build
with:
image: registry.gitlab.com/kwinft/ci-images/archlinux/kwinft-base-master
15 changes: 14 additions & 1 deletion .github/workflows/commit-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ on:
default: 'master'
jobs:
message-lint:
name: Commit Message Lint
if: github.event_name != 'pull_request'
name: On Push
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
Expand All @@ -36,3 +37,15 @@ jobs:
run: >
commitlint --verbose --config=tooling/docs/commitlint.config.js
--from=_upstream/${{ inputs.upstream-branch }}

message-lint-pr:
if: github.event_name == 'pull_request'
name: On Pull Request
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- uses: wagoid/commitlint-github-action@v5
with:
configFile: tooling/docs/commitlint.config.js
helpURL: https://github.com/winft/como/blob/master/CONTRIBUTING.md#commit-message-guideline
64 changes: 64 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Package
on:
workflow_call:
inputs:
image:
description: Image to package on
required: true
type: string
artifact-name:
description: Artifact name of build dir
required: false
type: string
default: 'build'

jobs:
deb:
name: Create deb
runs-on: ubuntu-latest
container:
image: ${{ inputs.image }}
steps:
- name: Install dpkg
run: pacman -Sy --needed --quiet --noconfirm dpkg
- name: Checkout Repository
uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact-name }}
- name: Untar artifact
run: tar -xzf build-dir.tar
- name: Run CPack
run: cd build && cpack -G DEB -D CPACK_DEBIAN_FILE_NAME=como.deb
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: deb-package
path: build/_CPack_Packages/Linux/DEB/como.deb
retention-days: 8

tar:
name: Create tar
runs-on: ubuntu-latest
container:
image: ${{ inputs.image }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact-name }}
- name: Untar artifact
run: tar -xzf build-dir.tar
- name: Run CPack
# Need to use CPACK_PACKAGE_FILE_NAME instead of CPACK_ARCHIVE_FILE_NAME
# See: https://gitlab.kitware.com/cmake/cmake/-/issues/20419
run: cd build && cpack -G TGZ -D CPACK_PACKAGE_FILE_NAME=como
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: tar-package
path: build/_CPack_Packages/Linux/TGZ/como.tar.gz
retention-days: 8
16 changes: 16 additions & 0 deletions .github/workflows/rebuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Weekly Project Rebuild
on:
schedule:
- cron: '0 4 * * 4'
jobs:
build:
if: github.repository == 'winft/como'
uses: ./.github/workflows/build.yml
with:
image: registry.gitlab.com/kwinft/ci-images/archlinux/kwinft-base-master

package:
uses: ./.github/workflows/package.yml
needs: build
with:
image: registry.gitlab.com/kwinft/ci-images/archlinux/kwinft-base-master
Loading