Skip to content

Commit 4339e85

Browse files
committed
Rename workflows and add headers
1 parent ac676e0 commit 4339e85

11 files changed

Lines changed: 145 additions & 48 deletions

.github/workflows/linux-aarch64.yml renamed to .github/workflows/build-on-Linux-AArch64.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1-
name: Linux AArch64 Build
1+
# ---------------------------------------------------------------
2+
# Workflow File : build-on-Linux-AArch64.yml
3+
# File Authors : Aoran Zeng <ccmywish@qq.com>
4+
# Contributors : Nul None <nul@none.org>
5+
# |
6+
# Created On : <2023-09-14>
7+
# Last Modified : <2025-03-06>
8+
#
9+
# Build chsrc on Linux (AArch64) and upload it to GitHub: the 'pre' release
10+
# ---------------------------------------------------------------
11+
12+
name: Build on Linux AArch64
213
on:
314
push:
415
branches: [ "gh-build" ]
516
pull_request:
617
branches: [ "gh-build" ]
718

819
jobs:
9-
aarch64-linux-build-and-upload:
20+
build-and-upload:
1021
runs-on: ubuntu-latest
1122
steps:
12-
- name: Build aarch64
23+
- name: Build
1324
uses: uraimo/run-on-arch-action@v2
1425
with:
1526
arch: aarch64
@@ -27,7 +38,7 @@ jobs:
2738
make CI CI_ARTIFACT_NAME=chsrc-aarch64-linux
2839
cp ./chsrc-aarch64-linux /artifacts
2940
30-
- name: Release
41+
- name: Upload
3142
uses: softprops/action-gh-release@v1
3243
with:
3344
tag_name: pre

.github/workflows/linux-armv7.yml renamed to .github/workflows/build-on-Linux-ARMv7.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1-
name: Linux ARMv7 Build
1+
# ---------------------------------------------------------------
2+
# Workflow File : build-on-Linux-ARMv7.yml
3+
# File Authors : Aoran Zeng <ccmywish@qq.com>
4+
# Contributors : Nul None <nul@none.org>
5+
# |
6+
# Created On : <2023-09-14>
7+
# Last Modified : <2025-03-06>
8+
#
9+
# Build chsrc on Linux (ARMv7) and upload it to GitHub: the 'pre' release
10+
# ---------------------------------------------------------------
11+
12+
name: Build on Linux ARMv7
213
on:
314
push:
415
branches: [ "gh-build" ]
516
pull_request:
617
branches: [ "gh-build" ]
718

819
jobs:
9-
armv7-linu-build-and-upload:
20+
build-and-upload:
1021
runs-on: ubuntu-latest
1122
steps:
12-
- name: Build ARMv7
23+
- name: Build
1324
uses: uraimo/run-on-arch-action@v2
1425
with:
1526
arch: armv7
@@ -27,7 +38,7 @@ jobs:
2738
make CI CI_ARTIFACT_NAME=chsrc-armv7-linux
2839
cp ./chsrc-armv7-linux /artifacts
2940
30-
- name: Release
41+
- name: Upload
3142
uses: softprops/action-gh-release@v1
3243
with:
3344
tag_name: pre

.github/workflows/linux-riscv64.yml renamed to .github/workflows/build-on-Linux-riscv64.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1-
name: Linux riscv64 Build
1+
# ---------------------------------------------------------------
2+
# Workflow File : build-on-Linux-riscv64.yml
3+
# File Authors : Aoran Zeng <ccmywish@qq.com>
4+
# Contributors : Nul None <nul@none.org>
5+
# |
6+
# Created On : <2023-09-14>
7+
# Last Modified : <2025-03-06>
8+
#
9+
# Build chsrc on Linux (riscv64) and upload it to GitHub: the 'pre' release
10+
# ---------------------------------------------------------------
11+
12+
name: Build on Linux riscv64
213
on:
314
push:
415
branches: [ "gh-build" ]
516
pull_request:
617
branches: [ "gh-build" ]
718

819
jobs:
9-
riscv64-linux-build-and-upload:
20+
build-and-upload:
1021
runs-on: ubuntu-latest
1122
steps:
12-
- name: Build riscv64
23+
- name: Build
1324
uses: uraimo/run-on-arch-action@v2
1425
with:
1526
arch: riscv64
@@ -27,7 +38,7 @@ jobs:
2738
make CI CI_ARTIFACT_NAME=chsrc-riscv64-linux
2839
cp ./chsrc-riscv64-linux /artifacts
2940
30-
- name: Release
41+
- name: Upload
3142
uses: softprops/action-gh-release@v1
3243
with:
3344
tag_name: pre
Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,37 @@
1-
name: Linux x64 Build
1+
# ---------------------------------------------------------------
2+
# Workflow File : build-on-Linux-x64.yml
3+
# File Authors : Aoran Zeng <ccmywish@qq.com>
4+
# Contributors : Nul None <nul@none.org>
5+
# |
6+
# Created On : <2023-09-14>
7+
# Last Modified : <2025-03-06>
8+
#
9+
# Build chsrc on Linux (x64) and upload it to GitHub: the 'pre' release
10+
# ---------------------------------------------------------------
11+
12+
name: Build on Linux x64
213
on:
314
push:
415
branches: [ "gh-build" ]
516
pull_request:
617
branches: [ "gh-build" ]
718

819
jobs:
9-
x64-linux-build-and-upload:
20+
build-and-upload:
1021
runs-on: ubuntu-latest
1122

1223
steps:
1324
- name: Checkout repo
1425
uses: actions/checkout@v3
1526

16-
- name: Compile chsrc x64
27+
- name: Build
1728
run: |
1829
make CI CI_ARTIFACT_NAME=chsrc-x64-linux
1930
2031
- name: List files
2132
run: ls *-linux
2233

23-
- name: Release
34+
- name: Upload
2435
uses: softprops/action-gh-release@v1
2536
# if: startsWith(github.ref, 'refs/tags/')
2637
with:
Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
name: Windows Build
1+
# ---------------------------------------------------------------
2+
# Workflow File : build-on-Windows.yml
3+
# File Authors : Aoran Zeng <ccmywish@qq.com>
4+
# Contributors : Nul None <nul@none.org>
5+
# |
6+
# Created On : <2023-09-14>
7+
# Last Modified : <2025-03-06>
8+
#
9+
# Build chsrc on Windows and upload it to GitHub: the 'pre' release
10+
# ---------------------------------------------------------------
11+
12+
name: Build on Windows
213
on:
314
push:
415
branches: [ "gh-build" ]
@@ -7,7 +18,6 @@ on:
718

819
jobs:
920
build-and-upload:
10-
1121
runs-on: windows-latest
1222
defaults:
1323
run:
@@ -29,7 +39,7 @@ jobs:
2939
mingw-w64-i686-gcc
3040
mingw-w64-i686-make
3141
32-
- name: Compile chsrc x64
42+
- name: Build
3343
run: |
3444
mingw32-make.exe CI CI_ARTIFACT_NAME=chsrc-x64-windows
3545
@@ -42,7 +52,7 @@ jobs:
4252
- name: List files
4353
run: ls *.exe
4454

45-
- name: Release
55+
- name: Upload
4656
uses: softprops/action-gh-release@v1
4757
# if: startsWith(github.ref, 'refs/tags/')
4858
with:
Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
name: macOS Build
1+
# ---------------------------------------------------------------
2+
# Workflow File : build-on-macOS.yml
3+
# File Authors : Aoran Zeng <ccmywish@qq.com>
4+
# Contributors : Nul None <nul@none.org>
5+
# |
6+
# Created On : <2023-09-15>
7+
# Last Modified : <2025-03-06>
8+
#
9+
# Build chsrc on macOS and upload it to GitHub: the 'pre' release
10+
# ---------------------------------------------------------------
11+
12+
name: Build on macOS
213
on:
314
push:
415
branches: [ "gh-build" ]
@@ -13,14 +24,14 @@ jobs:
1324
- name: Checkout repo
1425
uses: actions/checkout@v3
1526

16-
- name: Compile chsrc for AArch64
27+
- name: Build for AArch64
1728
run: |
1829
make CI CI_ARTIFACT_NAME=chsrc-aarch64-macos
1930
2031
- name: List files
2132
run: ls *-macos
2233

23-
- name: Release
34+
- name: Upload
2435
uses: softprops/action-gh-release@v1
2536
# if: startsWith(github.ref, 'refs/tags/')
2637
with:
@@ -37,14 +48,14 @@ jobs:
3748
- name: Checkout repo
3849
uses: actions/checkout@v3
3950

40-
- name: Compile chsrc for x64
51+
- name: Build for x64
4152
run: |
4253
make CI CI_ARTIFACT_NAME=chsrc-x64-macos
4354
4455
- name: List files
4556
run: ls *-macos
4657

47-
- name: Release
58+
- name: Upload
4859
uses: softprops/action-gh-release@v1
4960
# if: startsWith(github.ref, 'refs/tags/')
5061
with:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ---------------------------------------------------------------
2-
# Workflow File : pkg-deb.yml
2+
# Workflow File : pkg-for-DEB.yml
33
# File Authors : sanchuanhehe <wyihe5520@gmail.com>
44
# Contributors : Aoran Zeng <ccmywish@qq.com>
55
# |
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-latest
2929

3030
steps:
31-
- name: Checkout repository
31+
- name: Checkout repo
3232
uses: actions/checkout@v4
3333

3434
- name: Get version from tag or input

.github/workflows/pkg-aur-rel.yml renamed to .github/workflows/pub-AUR-chsrc-and-chsrc-bin.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1-
# This workflow will publish the `chsrc` and the `chsrc-bin` packages to the AUR
2-
# when there is a new `released` event.
3-
# Note: only normal version tags like `v1.2.3` will be published.
4-
name: Publish AUR Package (chsrc, chsrc-bin)
1+
# ---------------------------------------------------------------
2+
# Workflow File : pub-AUR-chsrc-and-chsrc-bin.yml
3+
# File Authors : Terrasse <terrasse@qq.com>
4+
# Contributors : Nul None <nul@none.org>
5+
# |
6+
# Created On : <2024-08-29>
7+
# Last Modified : <2025-03-18>
8+
#
9+
# Publish the 2 packages to AUR when a new release is created:
10+
# 1. chsrc
11+
# 2. chsrc-bin
12+
#
13+
# Note: only normal version tags like 'v1.2.3' will be published
14+
# ---------------------------------------------------------------
15+
16+
name: Publish 'chsrc' and 'chsrc-bin' to AUR
517
on:
618
release:
719
types: [ released ]
@@ -60,4 +72,4 @@ jobs:
6072
commit_username: ${{ secrets.AUR_USERNAME }}
6173
commit_email: ${{ secrets.AUR_EMAIL }}
6274
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
63-
commit_message: "github-action-auto-publish v${{ env.version }}"
75+
commit_message: "github-action-auto-publish v${{ env.version }}"
Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
# This workflow will publish the `chsrc-git` package to the AUR
2-
# when the main branch is updated.
3-
name: Publish AUR Package (chsrc-git)
1+
# ---------------------------------------------------------------
2+
# Workflow File : pub-AUR-chsrc-git.yml
3+
# File Authors : Terrasse <terrasse@qq.com>
4+
# Contributors : Nul None <nul@none.org>
5+
# |
6+
# Created On : <2024-08-29>
7+
# Last Modified : <2025-03-18>
8+
#
9+
# Publish package 'chsrc-git' to AUR when branch 'main' is updated.
10+
# ---------------------------------------------------------------
11+
12+
name: Publish 'chsrc-git' to AUR
413
on:
514
workflow_dispatch:
615
push:

.github/workflows/pub-WinGet.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# ---------------------------------------------------------------
2+
# Workflow File : pub-WinGet.yml
3+
# File Authors : YU-7 <2747046473@qq.com>
4+
# Contributors : Nul None <nul@none.org>
5+
# |
6+
# Created On : <2024-12-25>
7+
# Last Modified : <2024-12-25>
8+
#
9+
# This workflow publish to winget
10+
# ---------------------------------------------------------------
11+
12+
name: Publish to WinGet
13+
on:
14+
release:
15+
types: [released]
16+
jobs:
17+
publish:
18+
runs-on: windows-latest
19+
steps:
20+
- uses: vedantmgoyal9/winget-releaser@main
21+
with:
22+
identifier: RubyMetric.chsrc
23+
installers-regex: '\.exe$' # Only .exe files
24+
token: ${{ secrets.WINGET_TOKEN }}

0 commit comments

Comments
 (0)