Skip to content

Commit 1ff6612

Browse files
Copilothsluoyz
andcommitted
Update CI workflows to use latest GitHub Actions versions
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
1 parent 68b3a28 commit 1ff6612

5 files changed

Lines changed: 18 additions & 14 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
steps:
2424
- name: Checkout
2525
id: checkout
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@v4
2727
- name: Configuring CMake files
2828
id: building-files
2929
run: |

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ on: [push, pull_request]
1818

1919
jobs:
2020
linux:
21-
name: "Ubuntu Latest (GNU 9.3.0)"
21+
name: "Ubuntu Latest"
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout
2525
id: checkout
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@v4
2727
- name: Configuring CMake files
2828
id: building-files
2929
run: |
@@ -43,12 +43,12 @@ jobs:
4343
rm -r build
4444
4545
windows:
46-
name: "Windows Latest (MSVC 19.29)"
46+
name: "Windows Latest"
4747
runs-on: windows-latest
4848
steps:
4949
- name: Checkout
5050
id: checkout
51-
uses: actions/checkout@v2
51+
uses: actions/checkout@v4
5252
- name: Configuring CMake files
5353
id: building-files
5454
run: |
@@ -67,12 +67,12 @@ jobs:
6767
ctest -j10 -C Release -T test --output-on-failure
6868
6969
macos:
70-
name: "macOS Latest (AppleClang 12.0)"
70+
name: "macOS Latest"
7171
runs-on: macos-latest
7272
steps:
7373
- name: Checkout
7474
id: checkout
75-
uses: actions/checkout@v2
75+
uses: actions/checkout@v4
7676
- name: Configuring CMake files
7777
id: building-files
7878
run: |

.github/workflows/memcheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ on: [push, pull_request]
1818

1919
jobs:
2020
linux:
21-
name: "Ubuntu Latest (GNU 9.3.0)"
21+
name: "Ubuntu Latest"
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout
2525
id: checkout
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@v4
2727
- name: Install requirement
2828
id: install-requirements
2929
run: |

.github/workflows/python_binding.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
runs-on: ${{ matrix.platform }}
2828

2929
steps:
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v4
3131
with:
3232
submodules: true
33-
- uses: actions/setup-python@v2
33+
- uses: actions/setup-python@v5
3434
with:
3535
python-version: ${{ matrix.python-version }}
3636
- name: Add requirements

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ jobs:
1212
semantic-release:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '20'
1621

1722
- name: Run semantic-release
1823
if: github.repository == 'casbin/casbin-cpp' && github.event_name == 'push'
1924
run: |
20-
export PATH="$(yarn global bin):$PATH"
21-
yarn global add semantic-release@19.0.5
25+
npm install -g semantic-release@19.0.5
2226
semantic-release
2327
sleep 10
2428
env:

0 commit comments

Comments
 (0)