File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
213on :
314 push :
415 branches : [ "gh-build" ]
516 pull_request :
617 branches : [ "gh-build" ]
718
819jobs :
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
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
Original file line number Diff line number Diff line change 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
213on :
314 push :
415 branches : [ "gh-build" ]
516 pull_request :
617 branches : [ "gh-build" ]
718
819jobs :
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
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
Original file line number Diff line number Diff line change 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
213on :
314 push :
415 branches : [ "gh-build" ]
516 pull_request :
617 branches : [ "gh-build" ]
718
819jobs :
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
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
Original file line number Diff line number Diff line change 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
213on :
314 push :
415 branches : [ "gh-build" ]
516 pull_request :
617 branches : [ "gh-build" ]
718
819jobs :
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 :
Original file line number Diff line number Diff line change 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
213on :
314 push :
415 branches : [ "gh-build" ]
718
819jobs :
920 build-and-upload :
10-
1121 runs-on : windows-latest
1222 defaults :
1323 run :
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
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 :
Original file line number Diff line number Diff line change 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
213on :
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 :
Original file line number Diff line number Diff line change 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# |
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
Original file line number Diff line number Diff line change 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
517on :
618 release :
719 types : [ released ]
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 }}"
Original file line number Diff line number Diff line change 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
413on :
514 workflow_dispatch :
615 push :
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments