mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-18 17:56:57 +08:00
Workflows use zh
[skip ci]
This commit is contained in:
parent
d798da80f7
commit
02c3a815de
6
.github/workflows/build-on-Linux-AArch64.yml
vendored
6
.github/workflows/build-on-Linux-AArch64.yml
vendored
@ -9,7 +9,7 @@
|
|||||||
# Build chsrc on Linux (AArch64) and upload it to GitHub: the 'pre' release
|
# Build chsrc on Linux (AArch64) and upload it to GitHub: the 'pre' release
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|
||||||
name: Build on Linux AArch64
|
name: 构建于 Linux AArch64
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "gh-build" ]
|
branches: [ "gh-build" ]
|
||||||
@ -20,7 +20,7 @@ jobs:
|
|||||||
build-and-upload:
|
build-and-upload:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Build
|
- name: 构建
|
||||||
uses: uraimo/run-on-arch-action@v2
|
uses: uraimo/run-on-arch-action@v2
|
||||||
with:
|
with:
|
||||||
arch: aarch64
|
arch: aarch64
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
make CI CI_ARTIFACT_NAME=chsrc-aarch64-linux
|
make CI CI_ARTIFACT_NAME=chsrc-aarch64-linux
|
||||||
cp ./chsrc-aarch64-linux /artifacts
|
cp ./chsrc-aarch64-linux /artifacts
|
||||||
|
|
||||||
- name: Upload
|
- name: 上传至 'pre' release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: pre
|
tag_name: pre
|
||||||
|
6
.github/workflows/build-on-Linux-ARMv7.yml
vendored
6
.github/workflows/build-on-Linux-ARMv7.yml
vendored
@ -9,7 +9,7 @@
|
|||||||
# Build chsrc on Linux (ARMv7) and upload it to GitHub: the 'pre' release
|
# Build chsrc on Linux (ARMv7) and upload it to GitHub: the 'pre' release
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|
||||||
name: Build on Linux ARMv7
|
name: 构建于 Linux ARMv7
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "gh-build" ]
|
branches: [ "gh-build" ]
|
||||||
@ -20,7 +20,7 @@ jobs:
|
|||||||
build-and-upload:
|
build-and-upload:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Build
|
- name: 构建
|
||||||
uses: uraimo/run-on-arch-action@v2
|
uses: uraimo/run-on-arch-action@v2
|
||||||
with:
|
with:
|
||||||
arch: armv7
|
arch: armv7
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
make CI CI_ARTIFACT_NAME=chsrc-armv7-linux
|
make CI CI_ARTIFACT_NAME=chsrc-armv7-linux
|
||||||
cp ./chsrc-armv7-linux /artifacts
|
cp ./chsrc-armv7-linux /artifacts
|
||||||
|
|
||||||
- name: Upload
|
- name: 上传至 'pre' release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: pre
|
tag_name: pre
|
||||||
|
6
.github/workflows/build-on-Linux-riscv64.yml
vendored
6
.github/workflows/build-on-Linux-riscv64.yml
vendored
@ -9,7 +9,7 @@
|
|||||||
# Build chsrc on Linux (riscv64) and upload it to GitHub: the 'pre' release
|
# Build chsrc on Linux (riscv64) and upload it to GitHub: the 'pre' release
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|
||||||
name: Build on Linux riscv64
|
name: 构建于 Linux riscv64
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "gh-build" ]
|
branches: [ "gh-build" ]
|
||||||
@ -20,7 +20,7 @@ jobs:
|
|||||||
build-and-upload:
|
build-and-upload:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Build
|
- name: 构建
|
||||||
uses: uraimo/run-on-arch-action@v2
|
uses: uraimo/run-on-arch-action@v2
|
||||||
with:
|
with:
|
||||||
arch: riscv64
|
arch: riscv64
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
make CI CI_ARTIFACT_NAME=chsrc-riscv64-linux
|
make CI CI_ARTIFACT_NAME=chsrc-riscv64-linux
|
||||||
cp ./chsrc-riscv64-linux /artifacts
|
cp ./chsrc-riscv64-linux /artifacts
|
||||||
|
|
||||||
- name: Upload
|
- name: 上传至 'pre' release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: pre
|
tag_name: pre
|
||||||
|
8
.github/workflows/build-on-Linux-x64.yml
vendored
8
.github/workflows/build-on-Linux-x64.yml
vendored
@ -9,7 +9,7 @@
|
|||||||
# Build chsrc on Linux (x64) and upload it to GitHub: the 'pre' release
|
# Build chsrc on Linux (x64) and upload it to GitHub: the 'pre' release
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|
||||||
name: Build on Linux x64
|
name: 构建于 Linux x64
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "gh-build" ]
|
branches: [ "gh-build" ]
|
||||||
@ -21,17 +21,17 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: 检出代码
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build
|
- name: 构建
|
||||||
run: |
|
run: |
|
||||||
make CI CI_ARTIFACT_NAME=chsrc-x64-linux
|
make CI CI_ARTIFACT_NAME=chsrc-x64-linux
|
||||||
|
|
||||||
- name: List files
|
- name: List files
|
||||||
run: ls *-linux
|
run: ls *-linux
|
||||||
|
|
||||||
- name: Upload
|
- name: 上传至 'pre' release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
# if: startsWith(github.ref, 'refs/tags/')
|
# if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
|
12
.github/workflows/build-on-Windows.yml
vendored
12
.github/workflows/build-on-Windows.yml
vendored
@ -9,7 +9,7 @@
|
|||||||
# Build chsrc on Windows and upload it to GitHub: the 'pre' release
|
# Build chsrc on Windows and upload it to GitHub: the 'pre' release
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|
||||||
name: Build on Windows
|
name: 构建于 Windows
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "gh-build" ]
|
branches: [ "gh-build" ]
|
||||||
@ -25,10 +25,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: 检出代码
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install x64 gcc
|
- name: 安装 GCC
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
msystem: UCRT64
|
msystem: UCRT64
|
||||||
@ -39,11 +39,11 @@ jobs:
|
|||||||
mingw-w64-i686-gcc
|
mingw-w64-i686-gcc
|
||||||
mingw-w64-i686-make
|
mingw-w64-i686-make
|
||||||
|
|
||||||
- name: Build
|
- name: 为 x64 构建
|
||||||
run: |
|
run: |
|
||||||
mingw32-make.exe CI CI_ARTIFACT_NAME=chsrc-x64-windows
|
mingw32-make.exe CI CI_ARTIFACT_NAME=chsrc-x64-windows
|
||||||
|
|
||||||
- name: Compile chsrc x86
|
- name: 为 x32 构建
|
||||||
env:
|
env:
|
||||||
MSYSTEM: MINGW32
|
MSYSTEM: MINGW32
|
||||||
run: |
|
run: |
|
||||||
@ -52,7 +52,7 @@ jobs:
|
|||||||
- name: List files
|
- name: List files
|
||||||
run: ls *.exe
|
run: ls *.exe
|
||||||
|
|
||||||
- name: Upload
|
- name: 上传至 'pre' release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
# if: startsWith(github.ref, 'refs/tags/')
|
# if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
|
14
.github/workflows/build-on-macOS.yml
vendored
14
.github/workflows/build-on-macOS.yml
vendored
@ -9,7 +9,7 @@
|
|||||||
# Build chsrc on macOS and upload it to GitHub: the 'pre' release
|
# Build chsrc on macOS and upload it to GitHub: the 'pre' release
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|
||||||
name: Build on macOS
|
name: 构建于 macOS
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "gh-build" ]
|
branches: [ "gh-build" ]
|
||||||
@ -21,17 +21,17 @@ jobs:
|
|||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: 检出代码
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build for AArch64
|
- name: 为 AArch64 构建
|
||||||
run: |
|
run: |
|
||||||
make CI CI_ARTIFACT_NAME=chsrc-aarch64-macos
|
make CI CI_ARTIFACT_NAME=chsrc-aarch64-macos
|
||||||
|
|
||||||
- name: List files
|
- name: List files
|
||||||
run: ls *-macos
|
run: ls *-macos
|
||||||
|
|
||||||
- name: Upload
|
- name: 上传至 'pre' release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
# if: startsWith(github.ref, 'refs/tags/')
|
# if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
@ -45,17 +45,17 @@ jobs:
|
|||||||
runs-on: macos-13 # macos-14 is AArch64(ARMv8-A)
|
runs-on: macos-13 # macos-14 is AArch64(ARMv8-A)
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: 检出代码
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build for x64
|
- name: 为 x64 构建
|
||||||
run: |
|
run: |
|
||||||
make CI CI_ARTIFACT_NAME=chsrc-x64-macos
|
make CI CI_ARTIFACT_NAME=chsrc-x64-macos
|
||||||
|
|
||||||
- name: List files
|
- name: List files
|
||||||
run: ls *-macos
|
run: ls *-macos
|
||||||
|
|
||||||
- name: Upload
|
- name: 上传至 'pre' release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
# if: startsWith(github.ref, 'refs/tags/')
|
# if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user