Skip to content

Commit

Permalink
Release -> 0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
CsVeryLoveXieWenLi committed Aug 8, 2024
1 parent 297266e commit b32f5cc
Show file tree
Hide file tree
Showing 8 changed files with 208 additions and 6 deletions.
202 changes: 202 additions & 0 deletions .github/workflows/ReleaseBuild.yml
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 removed .github/workflows/linux-arm.yml
Empty file.
Empty file removed .github/workflows/linux-arm64.yml
Empty file.
Empty file removed .github/workflows/linux-x64.yml
Empty file.
Empty file removed .github/workflows/windows-arm.yml
Empty file.
Empty file.
3 changes: 0 additions & 3 deletions .github/workflows/windows-x64.yml

This file was deleted.

9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
<!--
* @Author: CsVeryLoveXieWenLi
* @Date: 2024-07-24 18:55:32
* @LastEditTime: 2024-07-24 21:28:45
* @LastEditTime: 2024-08-08 11:59:43
* @Description:
* @Sign: 有些故事,总是美妙又缥缈,郁郁不得终。
* Copyright (c) 2024 by CsVeryLoveXieWenLi, All Rights Reserved.
-->

## 极简 静态网页服务端

- **非正常开源项目,仅自用!**
- ~**非正常开源项目,仅自用!**~

- **开源协议:MIT。**


## 使用

- 前往Release下载适合的发布版本
- 前往Actions下载适合的发布版本

- Arm64、Arm,不可用

- 命令: StaticWeb [thread_num] [host] [port] [static_dir]

Expand Down

0 comments on commit b32f5cc

Please sign in to comment.