Rename workflows and add headers

This commit is contained in:
Aoran Zeng 2025-06-16 00:40:04 +08:00
parent ac676e07c6
commit 4339e856d3
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
11 changed files with 145 additions and 48 deletions

View File

@ -1,4 +1,15 @@
name: Linux AArch64 Build
# ---------------------------------------------------------------
# Workflow File : build-on-Linux-AArch64.yml
# File Authors : Aoran Zeng <ccmywish@qq.com>
# Contributors : Nul None <nul@none.org>
# |
# Created On : <2023-09-14>
# Last Modified : <2025-03-06>
#
# Build chsrc on Linux (AArch64) and upload it to GitHub: the 'pre' release
# ---------------------------------------------------------------
name: Build on Linux AArch64
on:
push:
branches: [ "gh-build" ]
@ -6,10 +17,10 @@ on:
branches: [ "gh-build" ]
jobs:
aarch64-linux-build-and-upload:
build-and-upload:
runs-on: ubuntu-latest
steps:
- name: Build aarch64
- name: Build
uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
@ -27,7 +38,7 @@ jobs:
make CI CI_ARTIFACT_NAME=chsrc-aarch64-linux
cp ./chsrc-aarch64-linux /artifacts
- name: Release
- name: Upload
uses: softprops/action-gh-release@v1
with:
tag_name: pre

View File

@ -1,4 +1,15 @@
name: Linux ARMv7 Build
# ---------------------------------------------------------------
# Workflow File : build-on-Linux-ARMv7.yml
# File Authors : Aoran Zeng <ccmywish@qq.com>
# Contributors : Nul None <nul@none.org>
# |
# Created On : <2023-09-14>
# Last Modified : <2025-03-06>
#
# Build chsrc on Linux (ARMv7) and upload it to GitHub: the 'pre' release
# ---------------------------------------------------------------
name: Build on Linux ARMv7
on:
push:
branches: [ "gh-build" ]
@ -6,10 +17,10 @@ on:
branches: [ "gh-build" ]
jobs:
armv7-linu-build-and-upload:
build-and-upload:
runs-on: ubuntu-latest
steps:
- name: Build ARMv7
- name: Build
uses: uraimo/run-on-arch-action@v2
with:
arch: armv7
@ -27,7 +38,7 @@ jobs:
make CI CI_ARTIFACT_NAME=chsrc-armv7-linux
cp ./chsrc-armv7-linux /artifacts
- name: Release
- name: Upload
uses: softprops/action-gh-release@v1
with:
tag_name: pre

View File

@ -1,4 +1,15 @@
name: Linux riscv64 Build
# ---------------------------------------------------------------
# Workflow File : build-on-Linux-riscv64.yml
# File Authors : Aoran Zeng <ccmywish@qq.com>
# Contributors : Nul None <nul@none.org>
# |
# Created On : <2023-09-14>
# Last Modified : <2025-03-06>
#
# Build chsrc on Linux (riscv64) and upload it to GitHub: the 'pre' release
# ---------------------------------------------------------------
name: Build on Linux riscv64
on:
push:
branches: [ "gh-build" ]
@ -6,10 +17,10 @@ on:
branches: [ "gh-build" ]
jobs:
riscv64-linux-build-and-upload:
build-and-upload:
runs-on: ubuntu-latest
steps:
- name: Build riscv64
- name: Build
uses: uraimo/run-on-arch-action@v2
with:
arch: riscv64
@ -27,7 +38,7 @@ jobs:
make CI CI_ARTIFACT_NAME=chsrc-riscv64-linux
cp ./chsrc-riscv64-linux /artifacts
- name: Release
- name: Upload
uses: softprops/action-gh-release@v1
with:
tag_name: pre

View File

@ -1,4 +1,15 @@
name: Linux x64 Build
# ---------------------------------------------------------------
# Workflow File : build-on-Linux-x64.yml
# File Authors : Aoran Zeng <ccmywish@qq.com>
# Contributors : Nul None <nul@none.org>
# |
# Created On : <2023-09-14>
# Last Modified : <2025-03-06>
#
# Build chsrc on Linux (x64) and upload it to GitHub: the 'pre' release
# ---------------------------------------------------------------
name: Build on Linux x64
on:
push:
branches: [ "gh-build" ]
@ -6,21 +17,21 @@ on:
branches: [ "gh-build" ]
jobs:
x64-linux-build-and-upload:
build-and-upload:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Compile chsrc x64
- name: Build
run: |
make CI CI_ARTIFACT_NAME=chsrc-x64-linux
- name: List files
run: ls *-linux
- name: Release
- name: Upload
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:

View File

@ -1,4 +1,15 @@
name: Windows Build
# ---------------------------------------------------------------
# Workflow File : build-on-Windows.yml
# File Authors : Aoran Zeng <ccmywish@qq.com>
# Contributors : Nul None <nul@none.org>
# |
# Created On : <2023-09-14>
# Last Modified : <2025-03-06>
#
# Build chsrc on Windows and upload it to GitHub: the 'pre' release
# ---------------------------------------------------------------
name: Build on Windows
on:
push:
branches: [ "gh-build" ]
@ -7,7 +18,6 @@ on:
jobs:
build-and-upload:
runs-on: windows-latest
defaults:
run:
@ -29,7 +39,7 @@ jobs:
mingw-w64-i686-gcc
mingw-w64-i686-make
- name: Compile chsrc x64
- name: Build
run: |
mingw32-make.exe CI CI_ARTIFACT_NAME=chsrc-x64-windows
@ -42,7 +52,7 @@ jobs:
- name: List files
run: ls *.exe
- name: Release
- name: Upload
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:

View File

@ -1,4 +1,15 @@
name: macOS Build
# ---------------------------------------------------------------
# Workflow File : build-on-macOS.yml
# File Authors : Aoran Zeng <ccmywish@qq.com>
# Contributors : Nul None <nul@none.org>
# |
# Created On : <2023-09-15>
# Last Modified : <2025-03-06>
#
# Build chsrc on macOS and upload it to GitHub: the 'pre' release
# ---------------------------------------------------------------
name: Build on macOS
on:
push:
branches: [ "gh-build" ]
@ -13,14 +24,14 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3
- name: Compile chsrc for AArch64
- name: Build for AArch64
run: |
make CI CI_ARTIFACT_NAME=chsrc-aarch64-macos
- name: List files
run: ls *-macos
- name: Release
- name: Upload
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
@ -37,14 +48,14 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3
- name: Compile chsrc for x64
- name: Build for x64
run: |
make CI CI_ARTIFACT_NAME=chsrc-x64-macos
- name: List files
run: ls *-macos
- name: Release
- name: Upload
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:

View File

@ -1,5 +1,5 @@
# ---------------------------------------------------------------
# Workflow File : pkg-deb.yml
# Workflow File : pkg-for-DEB.yml
# File Authors : sanchuanhehe <wyihe5520@gmail.com>
# Contributors : Aoran Zeng <ccmywish@qq.com>
# |
@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- name: Checkout repo
uses: actions/checkout@v4
- name: Get version from tag or input

View File

@ -1,7 +1,19 @@
# This workflow will publish the `chsrc` and the `chsrc-bin` packages to the AUR
# when there is a new `released` event.
# Note: only normal version tags like `v1.2.3` will be published.
name: Publish AUR Package (chsrc, chsrc-bin)
# ---------------------------------------------------------------
# Workflow File : pub-AUR-chsrc-and-chsrc-bin.yml
# File Authors : Terrasse <terrasse@qq.com>
# Contributors : Nul None <nul@none.org>
# |
# Created On : <2024-08-29>
# Last Modified : <2025-03-18>
#
# Publish the 2 packages to AUR when a new release is created:
# 1. chsrc
# 2. chsrc-bin
#
# Note: only normal version tags like 'v1.2.3' will be published
# ---------------------------------------------------------------
name: Publish 'chsrc' and 'chsrc-bin' to AUR
on:
release:
types: [ released ]
@ -60,4 +72,4 @@ jobs:
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
commit_message: "github-action-auto-publish v${{ env.version }}"
commit_message: "github-action-auto-publish v${{ env.version }}"

View File

@ -1,6 +1,15 @@
# This workflow will publish the `chsrc-git` package to the AUR
# when the main branch is updated.
name: Publish AUR Package (chsrc-git)
# ---------------------------------------------------------------
# Workflow File : pub-AUR-chsrc-git.yml
# File Authors : Terrasse <terrasse@qq.com>
# Contributors : Nul None <nul@none.org>
# |
# Created On : <2024-08-29>
# Last Modified : <2025-03-18>
#
# Publish package 'chsrc-git' to AUR when branch 'main' is updated.
# ---------------------------------------------------------------
name: Publish 'chsrc-git' to AUR
on:
workflow_dispatch:
push:

24
.github/workflows/pub-WinGet.yml vendored Normal file
View File

@ -0,0 +1,24 @@
# ---------------------------------------------------------------
# Workflow File : pub-WinGet.yml
# File Authors : YU-7 <2747046473@qq.com>
# Contributors : Nul None <nul@none.org>
# |
# Created On : <2024-12-25>
# Last Modified : <2024-12-25>
#
# This workflow publish to winget
# ---------------------------------------------------------------
name: Publish to WinGet
on:
release:
types: [released]
jobs:
publish:
runs-on: windows-latest
steps:
- uses: vedantmgoyal9/winget-releaser@main
with:
identifier: RubyMetric.chsrc
installers-regex: '\.exe$' # Only .exe files
token: ${{ secrets.WINGET_TOKEN }}

View File

@ -1,13 +0,0 @@
name: Publish to WinGet
on:
release:
types: [released]
jobs:
publish:
runs-on: windows-latest
steps:
- uses: vedantmgoyal9/winget-releaser@main
with:
identifier: RubyMetric.chsrc
installers-regex: '\.exe$' # Only .exe files
token: ${{ secrets.WINGET_TOKEN }}