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 7
7
runs-on : ubuntu-latest
8
8
9
9
steps :
10
- - name : Checkout repository
10
+ - name : Checkout repository (full history)
11
11
uses : actions/checkout@v2
12
12
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
14
20
15
21
- name : Setup Python
16
22
uses : actions/setup-python@v2
17
23
with :
18
24
python-version : ' 3.x'
19
25
20
26
- 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
22
28
23
29
- name : Run tests
24
30
run : |
You can’t perform that action at this time.
0 commit comments