forked from futurerestore/futurerestore
-
Notifications
You must be signed in to change notification settings - Fork 0
122 lines (120 loc) · 4.85 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: Futurerestore
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 1 1 *'
- cron: '0 0 1 4 *'
- cron: '0 0 30 6 *'
- cron: '0 0 28 9 *'
- cron: '0 0 27 12 *'
jobs:
macOS:
env:
PROCURSUS: /opt/procursus
PATH: /opt/procursus/bin:/opt/procursus/libexec/gnubin:/usr/local/lib/ruby/gems/2.7.0/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt/pipx_bin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Users/runner/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools:/Users/runner/.ghcup/bin:/Users/runner/hostedtoolcache/stack/2.7.3/x64
runs-on: macos-12
steps:
- name: Checkout
id: Checkout
uses: actions/checkout@v2
with:
submodules: 'true'
fetch-depth: 0
- name: Update Xcode
id: Update-Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.1.0'
- name: macOS Build
id: macOS-Build
run: |
${{ github.workspace }}/.github/workflows/mac-bootstrap.sh
${{ github.workspace }}/.github/workflows/mac-build.sh
${{ github.workspace }}/.github/workflows/mac-post.sh
- name: Versioning
id: Versioning
uses: actions/upload-artifact@v2
with:
name: Versioning
path: |
${{ github.workspace }}/latest_build_sha.txt
${{ github.workspace }}/latest_build_num.txt
- name: macOS RELEASE Archive
id: macOS-RELEASE-Archive
uses: actions/upload-artifact@v2
with:
name: futurerestore-macOS-RELEASE
path: |
${{ github.workspace }}/futurerestore-macOS-*-RELEASE.tar.xz
- name: macOS DEBUG Archive
id: macOS-DEBUG-Archive
uses: actions/upload-artifact@v2
with:
name: futurerestore-macOS-DEBUG
path: |
${{ github.workspace }}/futurerestore-macOS-*-DEBUG.tar.xz
- name: macOS ASAN Archive
id: macOS-ASAN-Archive
uses: actions/upload-artifact@v2
with:
name: futurerestore-macOS-ASAN
path: |
${{ github.workspace }}/futurerestore-macOS-*-ASAN.tar.xz
Linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
id: Checkout
uses: actions/checkout@v2
with:
submodules: 'true'
fetch-depth: 0
- name: Linux Build
id: Linux
uses: addnab/docker-run-action@v3
with:
image: debian:buster-slim
options: -v ${{ github.workspace }}/..:/tmp/Builder/repos/
run: |
/tmp/Builder/repos/futurerestore/.github/workflows/linux-bootstrap.sh
/tmp/Builder/repos/futurerestore/.github/workflows/linux-build.sh
/tmp/Builder/repos/futurerestore/.github/workflows/linux-post.sh
mkdir -p ${{ github.workspace }}/.github/workflows/
- name: Linux x86_64 RELEASE Build
id: Linux-x86_64-RELEASE-Build
run: |
sudo chown -R $USER:$USER ${{ github.workspace }}/../
mv ${{ github.workspace }}/.github/workflows/futurerestore1.tar.xz ${{ github.workspace }}/.github/workflows/$(cat ${{ github.workspace }}/.github/workflows/name1.txt)
- name: Linux x86_64 DEBUG Build
id: Linux-x86_64-DEBUG-Build
run: |
mv ${{ github.workspace }}/.github/workflows/futurerestore2.tar.xz ${{ github.workspace }}/.github/workflows/$(cat ${{ github.workspace }}/.github/workflows/name2.txt)
- name: Linux x86_64 ASAN Build
id: Linux-x86_64-ASAN-Build
run: |
mv ${{ github.workspace }}/.github/workflows/futurerestore3.tar.xz ${{ github.workspace }}/.github/workflows/$(cat ${{ github.workspace }}/.github/workflows/name3.txt)
- name: futurerestore Linux x86_64 RELEASE Archive
id: futurerestore-Linux-x86_64-RELEASE-Archive
uses: actions/upload-artifact@v2
with:
name: futurerestore-Linux-x86_64-RELEASE
path: |
${{ github.workspace }}/.github/workflows/futurerestore-Linux-x86_64*-RELEASE.tar.xz
- name: futurerestore Linux x86_64 DEBUG Archive
id: futurerestore-Linux-x86_64-DEBUG-Archive
uses: actions/upload-artifact@v2
with:
name: futurerestore-Linux-x86_64-DEBUG
path: |
${{ github.workspace }}/.github/workflows/futurerestore-Linux-x86_64*-DEBUG.tar.xz
- name: futurerestore Linux x86_64 ASAN Archive
id: futurerestore-Linux-x86_64-ASAN-Archive
uses: actions/upload-artifact@v2
with:
name: futurerestore-Linux-x86_64-ASAN
path: |
${{ github.workspace }}/.github/workflows/futurerestore-Linux-x86_64*-ASAN.tar.xz