Skip to content

Commit 769ccd3

Browse files
authored
Merge pull request #750 from os-fpga/centospatch
Fix Centos 7 EOL issue
2 parents ec02459 + 4ab3c36 commit 769ccd3

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
branches:
1010
- main
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
linux-gcc:
1418
runs-on: ubuntu-latest
@@ -25,11 +29,6 @@ jobs:
2529
CC: ${{ matrix.config.cc }}
2630
CXX: ${{ matrix.config.cxx }}
2731
steps:
28-
- name: Cancel previous
29-
uses: styfle/cancel-workflow-action@0.11.0
30-
with:
31-
access_token: ${{ github.token }}
32-
3332
- name: Runner workspace path
3433
run: |
3534
echo "Cleaning up previous run"
@@ -73,11 +72,6 @@ jobs:
7372
CC: ${{ matrix.config.cc }}
7473
CXX: ${{ matrix.config.cxx }}
7574
steps:
76-
- name: Cancel previous
77-
uses: styfle/cancel-workflow-action@0.11.0
78-
with:
79-
access_token: ${{ github.token }}
80-
8175
- name: Install ssh-agent
8276
run: |
8377
cd /opt && curl -L -o yumvault.tar.gz https://github.com/os-fpga/post_build_artifacts/releases/download/v0.2/yumvaultn.tar.gz && tar xvzf yumvault.tar.gz && ls -l && mv etc/yum.repos.d/Custom.repo /etc/yum.repos.d
@@ -100,7 +94,20 @@ jobs:
10094
yum install -y git
10195
10296
- name: Checkout repo
103-
uses: actions/checkout@v3
97+
run: |
98+
git config --global --add safe.directory $GITHUB_WORKSPACE
99+
git init $GITHUB_WORKSPACE
100+
git remote add origin https://github.com/$GITHUB_REPOSITORY
101+
git remote -v
102+
git config --local gc.auto 0
103+
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
104+
git -c protocol.version=2 fetch --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* +${{ github.sha }}:refs/remotes/pull/${{ github.event.pull_request.number }}/merge
105+
git checkout --progress --force refs/remotes/pull/${{ github.event.pull_request.number }}/merge
106+
else
107+
git -c protocol.version=2 fetch --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*
108+
git checkout origin/$GITHUB_REF_NAME
109+
fi
110+
git log -1 --format='%H'
104111
105112
- name: Install dependencies
106113
run: |

0 commit comments

Comments
 (0)