File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010
1111 steps :
12- # 1. Clona o repositório
1312 - uses : actions/checkout@v3
1413
15- # 2. Cache do elan (Lean toolchain)
1614 - name : Cache elan
1715 uses : actions/cache@v3
1816 with :
1917 path : ~/.elan
2018 key : ${{ runner.os }}-elan-${{ hashFiles('lean-toolchain') }}
2119
22- # 3. Instala Lean (rápido se vier do cache)
2320 - name : Install Lean
2421 run : |
2522 curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y
2623 echo "$HOME/.elan/bin" >> $GITHUB_PATH
2724
28- # 4. Cache do projeto (.lake + deps)
2925 - name : Cache lake
3026 uses : actions/cache@v3
3127 with :
@@ -34,11 +30,16 @@ jobs:
3430 build
3531 key : ${{ runner.os }}-lake-${{ hashFiles('lakefile.lean') }}
3632
37- # 5. Baixa dependências
3833 - name : Update deps
39- run : lake update
34+ run : |
35+ for i in 1 2 3; do
36+ lake update && exit 0
37+ echo "lake update failed, retry $i/3"
38+ sleep 10
39+ done
40+ exit 1
4041
41- # 6. Build
4242 - name : Build
43- run : lake build
43+ run : lake build
44+
4445
You can’t perform that action at this time.
0 commit comments