-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
297266e
commit b32f5cc
Showing
8 changed files
with
208 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,202 @@ | ||
# Release Build | ||
|
||
name: ReleaseBuild | ||
|
||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
|
||
jobs: | ||
Windows-x64: | ||
runs-on: windows-2022 | ||
if: "contains(github.event.head_commit.message, 'Release')" | ||
|
||
|
||
steps: | ||
- name: 安装Msbuild | ||
uses: microsoft/setup-msbuild@v2 | ||
with: | ||
msbuild-architecture: x64 | ||
|
||
- name: 安装Xmake | ||
uses: xmake-io/github-action-setup-xmake@v1 | ||
with: | ||
xmake-version: latest | ||
|
||
- name: 检出源代码 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: 编译 | ||
run: xmake | ||
|
||
- name: 上传 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Windows-x64 | ||
path: build/ | ||
|
||
|
||
Windows-x86: | ||
runs-on: windows-2022 | ||
if: "contains(github.event.head_commit.message, 'Release')" | ||
|
||
|
||
steps: | ||
- name: 安装Msbuild | ||
uses: microsoft/setup-msbuild@v2 | ||
with: | ||
msbuild-architecture: x86 | ||
|
||
- name: 安装Xmake | ||
uses: xmake-io/github-action-setup-xmake@v1 | ||
with: | ||
xmake-version: latest | ||
|
||
- name: 检出源代码 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: 编译 | ||
run: | | ||
xmake f -a x86 | ||
xmake | ||
- name: 上传 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Windows-x86 | ||
path: build/ | ||
|
||
|
||
Linux-x64: | ||
runs-on: ubuntu-22.04 | ||
if: "contains(github.event.head_commit.message, 'Release')" | ||
|
||
|
||
steps: | ||
- name: 安装Gcc | ||
uses: egor-tensin/setup-gcc@v1 | ||
with: | ||
version: latest | ||
platform: x64 | ||
|
||
- name: 安装Xmake | ||
uses: xmake-io/github-action-setup-xmake@v1 | ||
with: | ||
xmake-version: latest | ||
|
||
- name: 检出源代码 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: 编译 | ||
run: xmake | ||
|
||
- name: 上传 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Linux-x64 | ||
path: build/ | ||
|
||
|
||
Linux-x86: | ||
runs-on: ubuntu-22.04 | ||
if: "contains(github.event.head_commit.message, 'Release')" | ||
|
||
|
||
steps: | ||
- name: 安装Gcc | ||
uses: egor-tensin/setup-gcc@v1 | ||
with: | ||
version: latest | ||
platform: x86 | ||
|
||
- name: 安装Xmake | ||
uses: xmake-io/github-action-setup-xmake@v1 | ||
with: | ||
xmake-version: latest | ||
|
||
- name: 检出源代码 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: 编译 | ||
run: | | ||
xmake f -a x86 | ||
xmake | ||
- name: 上传 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Linux-x86 | ||
path: build/ | ||
|
||
|
||
Linux-Arm64: | ||
runs-on: ubuntu-24.04 | ||
if: "contains(github.event.head_commit.message, 'Release')" | ||
|
||
|
||
steps: | ||
- name: 安装Gcc | ||
run: sudo apt install -y g++-aarch64-linux-gnu | ||
|
||
- name: 安装Xmake | ||
uses: xmake-io/github-action-setup-xmake@v1 | ||
with: | ||
xmake-version: latest | ||
|
||
- name: 检出源代码 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: 编译 | ||
run: | | ||
xmake f -a arm64 | ||
xmake | ||
- name: 上传 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Linux-Arm64 | ||
path: build/ | ||
|
||
|
||
Linux-Arm: | ||
runs-on: ubuntu-24.04 | ||
if: "contains(github.event.head_commit.message, 'Release')" | ||
|
||
|
||
steps: | ||
- name: 安装Gcc | ||
run: sudo apt install g++-arm-linux-gnueabi | ||
|
||
- name: 安装Xmake | ||
uses: xmake-io/github-action-setup-xmake@v1 | ||
with: | ||
xmake-version: latest | ||
|
||
- name: 检出源代码 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: 编译 | ||
run: | | ||
xmake f -a arm | ||
xmake | ||
- name: 上传 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Linux-Arm | ||
path: build/ |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters