-
Notifications
You must be signed in to change notification settings - Fork 15
69 lines (55 loc) · 1.78 KB
/
predata.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
on:
# push:
# branches-ignore:
# # ignore tmp branches used by bors
# - 'staging.tmp*'
# - 'trying.tmp*'
# - 'staging*.tmp'
schedule:
- cron: '0 22 * * *' # 11PM CET/2PM PT
workflow_dispatch:
name: predata
jobs:
predata:
if: github.repository == 'leanprover-community/mathport'
name: Predata
runs-on: mathport
steps:
- name: clean up working directory
run: rm -rf *
- name: clean up elan
run: rm -rf $HOME/.elan
- name: install elan
run: |
set -o pipefail
curl -sSfL https://github.com/leanprover/elan/releases/download/v1.4.2/elan-x86_64-unknown-linux-gnu.tar.gz | tar xz
./elan-init -y --default-toolchain none
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- uses: actions/checkout@v4
- name: prepare sources
run: make mathbin-source lean3-source clean-predata
- name: prepare predata for Lean 3
run: make lean3-predata
- name: prepare predata for mathlib
run: env time -v make mathbin-predata LEAN3_OPTS=-j6
- name: clean up a bit
run: |
rm -rf sources/lean/.git sources/mathlib/.git
find sources -name "*.olean" -delete
- name: prepare tarballs for release
run: make predata-tarballs
- name: set tag
run: echo "TAG=predata-nightly-$(date -u +%F-%H)" >> $GITHUB_ENV
- name: release
uses: softprops/action-gh-release@v1
with:
prerelease: true
tag_name: ${{ env.TAG }}
target_commitish: ${{ github.sha }}
files: |
lean3-predata.tar.gz
mathlib3-predata.tar.gz
- name: clean up working directory
run: rm -rf *
- name: clean up elan
run: rm -rf $HOME/.elan