File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 77 runs-on : ubuntu-latest
88
99 steps :
10- - name : Checkout repository
10+ - name : Checkout repository (full history)
1111 uses : actions/checkout@v2
1212 with :
13- fetch-depth : 0
13+ fetch-depth : 0 # ← fetch all branches and commits
14+
15+ - name : Ensure master/main exist locally
16+ run : |
17+ # Try to fetch both master and main so that one of them is guaranteed to exist
18+ git fetch origin master:master || true
19+ git fetch origin main:main || true
1420
1521 - name : Setup Python
1622 uses : actions/setup-python@v2
1723 with :
1824 python-version : ' 3.x'
1925
2026 - name : Install CMake and Make
21- run : sudo apt-get install -y cmake make
27+ run : sudo apt-get update && sudo apt-get install -y cmake make
2228
2329 - name : Run tests
2430 run : |
You can’t perform that action at this time.
0 commit comments