-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (56 loc) · 1.45 KB
/
dotnet-core.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Minecraft_QQ构建
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- 'releases/**'
# Sequence of patterns matched against refs/tags
tags:
- '*'
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 设置.NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.201
- name: 构建源码
shell: bash
working-directory: ./
run: |
chmod a+x ./build/build-linux.sh
./build/build-linux.sh
- name: 上传
uses: actions/upload-artifact@v4
with:
name: "minecraft_qq_newgui-linux-x64"
path: build_out/newgui/**
- name: 上传
uses: actions/upload-artifact@v4
with:
name: "minecraft_qq_cmd-linux-x64"
path: build_out/cmd/**
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: 设置.NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.201
- name: 构建 源码
shell: cmd
working-directory: ./
run: ./build/build-windows.cmd
- name: 上传
uses: actions/upload-artifact@v4
with:
name: "minecraft_qq_newgui-win-x64"
path: build_out/newgui/**
- name: 上传
uses: actions/upload-artifact@v4
with:
name: "minecraft_qq_cmd-win-x64"
path: build_out/cmd/**