-
Notifications
You must be signed in to change notification settings - Fork 109
147 lines (121 loc) · 3.35 KB
/
main.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
name: main
on:
push:
paths:
- '**'
- '!.github/workflows/cross.yml'
- '!.github/workflows/ow-libc.yml'
- '!tools/*'
# pull_request:
# paths:
# - '**'
# - '!.github/workflows/cross.yml'
# - '!.github/workflows/ow-libc.yml'
# - '!tools/*'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: setup
run: 'sudo apt-get install texinfo libncurses5-dev libelf-dev ncompress'
- name: checkout
uses: actions/checkout@v2
- name: cache
id: cache
uses: actions/cache@v1
with:
path: cross
key: cross-${{ hashFiles('tools/*') }}-${{ runner.os }}
- name: prepare
if: steps.cache.outputs.cache-hit != 'true'
run: 'mkdir -p cross'
- name: cross
if: steps.cache.outputs.cache-hit != 'true'
run: tools/build.sh
- name: build
run: ./build.sh auto allimages
- name: upload
uses: actions/upload-artifact@v4
with:
name: fd1440.img
path: image/fd1440.img
- name: upload2
uses: actions/upload-artifact@v4
with:
name: fd360-minix.img
path: image/fd360-minix.img
- name: upload3
uses: actions/upload-artifact@v4
with:
name: fd720-minix.img
path: image/fd720-minix.img
- name: upload4
uses: actions/upload-artifact@v4
with:
name: fd1200-minix.img
path: image/fd1200-minix.img
- name: upload5
uses: actions/upload-artifact@v4
with:
name: fd1440-minix.img
path: image/fd1440-minix.img
- name: upload6
uses: actions/upload-artifact@v4
with:
name: fd2880-minix.img
path: image/fd2880-minix.img
- name: upload7
uses: actions/upload-artifact@v4
with:
name: hd32-minix.img
path: image/hd32-minix.img
- name: upload8
uses: actions/upload-artifact@v4
with:
name: hd32mbr-minix.img
path: image/hd32mbr-minix.img
- name: upload9
uses: actions/upload-artifact@v4
with:
name: fd360-fat.img
path: image/fd360-fat.img
- name: upload10
uses: actions/upload-artifact@v4
with:
name: fd720-fat.img
path: image/fd720-fat.img
- name: upload11
uses: actions/upload-artifact@v4
with:
name: fd1200-fat.img
path: image/fd1200-fat.img
- name: upload12
uses: actions/upload-artifact@v4
with:
name: fd1440-fat.img
path: image/fd1440-fat.img
- name: upload13
uses: actions/upload-artifact@v4
with:
name: fd2880-fat.img
path: image/fd2880-fat.img
- name: upload14
uses: actions/upload-artifact@v4
with:
name: hd32-fat.img
path: image/hd32-fat.img
- name: upload15
uses: actions/upload-artifact@v4
with:
name: hd32mbr-fat.img
path: image/hd32mbr-fat.img
- name: upload16
uses: actions/upload-artifact@v4
with:
name: hd64-minix.img
path: image/hd64-minix.img
- name: upload17
uses: actions/upload-artifact@v4
with:
name: fd1232.img
path: image/fd1232.img