-
Notifications
You must be signed in to change notification settings - Fork 7
76 lines (68 loc) · 3.26 KB
/
ci.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
67
68
69
70
71
72
73
74
75
76
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: npm install prettier
- run: npm run format:check
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: chmod 744 ./release_make/CI.sh
- run: ./release_make/CI.sh
- uses: actions/upload-artifact@v4
if: github.event_name != 'pull_request'
with:
name: Fairyground-Windows-x86_64
path: ./release_make/release-builds/win/x64/fairyground.7z
compression-level: 0
if-no-files-found: error
- uses: actions/upload-artifact@v4
if: github.event_name != 'pull_request'
with:
name: Fairyground-Windows-ARM64
path: ./release_make/release-builds/win/arm64/fairyground.7z
compression-level: 0
if-no-files-found: error
- uses: actions/upload-artifact@v4
if: github.event_name != 'pull_request'
with:
name: Fairyground-Linux-x86_64
path: ./release_make/release-builds/linux/x64/fairyground.7z
compression-level: 0
if-no-files-found: error
- uses: actions/upload-artifact@v4
if: github.event_name != 'pull_request'
with:
name: Fairyground-Linux-ARM64
path: ./release_make/release-builds/linux/arm64/fairyground.7z
compression-level: 0
if-no-files-found: error
- uses: actions/upload-artifact@v4
if: github.event_name != 'pull_request'
with:
name: Fairyground-Script-AllPlatform
path: ./release_make/release-builds/script/any/fairyground.7z
compression-level: 0
if-no-files-found: error
- uses: actions/upload-artifact@v4
if: github.event_name != 'pull_request'
with:
name: Source_Code
path: ./source.7z
compression-level: 0
if-no-files-found: error
- uses: mholetzko/annotate_runs@1.0.1
if: github.event_name != 'pull_request'
with:
title: "Fairyground Download Notice"
info: "Choose the version that matches your platform (i.e. CPU architecture and operating system).\n\"Fairyground-Script-AllPlatform\" is a script version that theorically supports all platforms but you need to install node.js before running it (See HOW_TO_USE.txt in the archive).\nOther versions are provided with a binary executable and are portable.\n ❗ If you don't know which version to download or no version suits your platform (e.g. macOS), select \"Fairyground-Script-AllPlatform\" and then follow HOW_TO_USE.txt in the archive."
warning: "All archives are double-packed in ZIP + 7ZIP(LZMA2) format. You will need an archive manager that supports both ZIP and 7ZIP(LZMA2) to extract them."
- uses: mholetzko/annotate_runs@1.0.1
if: github.event_name == 'pull_request'
with:
title: "Fairyground Download Notice"
warning: "This job is triggered by a pull request, which does not provide the one-click-to-run version. To download one-click-to-run version, find the jobs not triggered by pull requests by using the filter to search results with \"Event\" equals to \"push\" or \"workflow_dispatch\"."