-
-
Notifications
You must be signed in to change notification settings - Fork 18
178 lines (156 loc) · 7.13 KB
/
nightly.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
name: nightly
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *' # run at 1 AM UTC
jobs:
repo-change-check:
name: repository change check
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- id: commit-check
run: 'echo ::set-output name=has-commits::$(git --no-pager log --pretty=oneline --since="24 hours ago" | wc -l)'
outputs:
has-commits: ${{ steps.commit-check.outputs.has-commits }}
build:
runs-on: ubuntu-20.04
needs: repo-change-check
timeout-minutes: 480
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: setup dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt-get update -y -qq || true
sudo apt-get -qq install libc6:i386
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4
- name: setup env
run : |
echo "DATE=$(date +%Y%m%d)" >>$GITHUB_ENV
echo "GITHUB_SHA7=$(echo ${GITHUB_SHA::7})" >>$GITHUB_ENV
echo YAMVER=$(grep '#define __YAM_VERSION' src/YAM_global.c | cut -d '"' -f2 | tr -d ".") >>$GITHUB_ENV
- name: install adtools build env
run: |
DOWNLOAD_PATH=https://github.com/adtools/adtools/releases/download/20170213
curl -L ${DOWNLOAD_PATH}/adtools-utils.tar.bz2 | sudo tar xj -C /
curl -L ${DOWNLOAD_PATH}/adtools-m68k-amigaos.tar.bz2 | sudo tar xj -C /
curl -L ${DOWNLOAD_PATH}/adtools-ppc-amigaos.tar.bz2 | sudo tar xj -C /
curl -L ${DOWNLOAD_PATH}/adtools-ppc-morphos.tar.bz2 | sudo tar xj -C /
curl -L ${DOWNLOAD_PATH}/adtools-ppc-aros.tar.bz2 | sudo tar xj -C /
curl -L ${DOWNLOAD_PATH}/adtools-i386-aros.tar.bz2 | sudo tar xj -C /
curl -L ${DOWNLOAD_PATH}/adtools-x86_64-aros.tar.bz2 | sudo tar xj -C /
- name: cleanup old action artifacts
run: .github/workflows/purge_artifacts.sh ${{ secrets.GITHUB_TOKEN }}
#- name: remote debug tmate session
# uses: mxschmitt/action-tmate@v1
# if: matrix.platform == 'os4'
- name: build YAM nightlies
timeout-minutes: 480
run: |
export PATH=/usr/local/amiga/bin:/opt/m68k-amigaos/bin:/opt/ppc-amigaos/bin:/opt/ppc-morphos/bin:${PATH}
make -j1 nightly
- name: upload AmigaOS4 nightly build archive
uses: WebFreak001/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: https://uploads.github.com/repos/jens-maus/yam/releases/35749453/assets{?name,label}
release_id: 35749453
asset_path: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-AmigaOS4.lha
asset_name: YAM${{ env.YAMVER }}dev-$$-AmigaOS4.lha
asset_content_type: application/x-lzh-compressed
max_releases: 3
- name: upload AmigaOS4 nightly build archive [debug]
uses: WebFreak001/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: https://uploads.github.com/repos/jens-maus/yam/releases/35749453/assets{?name,label}
release_id: 35749453
asset_path: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-AmigaOS4-debug.lha
asset_name: YAM${{ env.YAMVER }}dev-$$-AmigaOS4-debug.lha
asset_content_type: application/x-lzh-compressed
max_releases: 3
- name: upload AmigaOS3 nightly build archive
uses: WebFreak001/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: https://uploads.github.com/repos/jens-maus/yam/releases/35749453/assets{?name,label}
release_id: 35749453
asset_path: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-AmigaOS3.lha
asset_name: YAM${{ env.YAMVER }}dev-$$-AmigaOS3.lha
asset_content_type: application/x-lzh-compressed
max_releases: 3
- name: upload AmigaOS3 nightly build archive [debug]
uses: WebFreak001/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: https://uploads.github.com/repos/jens-maus/yam/releases/35749453/assets{?name,label}
release_id: 35749453
asset_path: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-AmigaOS3-debug.lha
asset_name: YAM${{ env.YAMVER }}dev-$$-AmigaOS3-debug.lha
asset_content_type: application/x-lzh-compressed
max_releases: 3
- name: upload MorphOS nightly build archive
uses: WebFreak001/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: https://uploads.github.com/repos/jens-maus/yam/releases/35749453/assets{?name,label}
release_id: 35749453
asset_path: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-MorphOS.lha
asset_name: YAM${{ env.YAMVER }}dev-$$-MorphOS.lha
asset_content_type: application/x-lzh-compressed
max_releases: 3
- name: upload MorphOS nightly build archive [debug]
uses: WebFreak001/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: https://uploads.github.com/repos/jens-maus/yam/releases/35749453/assets{?name,label}
release_id: 35749453
asset_path: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-MorphOS-debug.lha
asset_name: YAM${{ env.YAMVER }}dev-$$-MorphOS-debug.lha
asset_content_type: application/x-lzh-compressed
max_releases: 3
- name: upload AmigaOS4 files as workflow artifact [release]
uses: actions/upload-artifact@v4
with:
path: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-AmigaOS4.lha*
name: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-${{ env.GITHUB_SHA7 }}-AmigaOS4.lha
continue-on-error: true
- name: upload AmigaOS4 files as workflow artifact [debug]
uses: actions/upload-artifact@v4
with:
path: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-AmigaOS4-debug.lha*
name: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-${{ env.GITHUB_SHA7 }}-AmigaOS4-debug.lha
continue-on-error: true
- name: upload AmigaOS3 files as workflow artifact [release]
uses: actions/upload-artifact@v4
with:
path: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-AmigaOS3.lha*
name: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-${{ env.GITHUB_SHA7 }}-AmigaOS3.lha
continue-on-error: true
- name: upload AmigaOS3 files as workflow artifact [debug]
uses: actions/upload-artifact@v4
with:
path: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-AmigaOS3-debug.lha*
name: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-${{ env.GITHUB_SHA7 }}-AmigaOS3-debug.lha
continue-on-error: true
- name: upload MorphOS files as workflow artifact [release]
uses: actions/upload-artifact@v4
with:
path: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-MorphOS.lha*
name: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-${{ env.GITHUB_SHA7 }}-MorphOS.lha
continue-on-error: true
- name: upload MorphOS files as workflow artifact [debug]
uses: actions/upload-artifact@v4
with:
path: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-MorphOS-debug.lha*
name: YAM${{ env.YAMVER }}dev-${{ env.DATE }}-${{ env.GITHUB_SHA7 }}-MorphOS-debug.lha
continue-on-error: true