diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 1e0216b1..49250d80 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Checkout id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Configuring CMake files id: building-files run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c03c850..8cf24603 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,12 +18,12 @@ on: [push, pull_request] jobs: linux: - name: "Ubuntu Latest (GNU 9.3.0)" + name: "Ubuntu Latest" runs-on: ubuntu-latest steps: - name: Checkout id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Configuring CMake files id: building-files run: | @@ -43,12 +43,12 @@ jobs: rm -r build windows: - name: "Windows Latest (MSVC 19.29)" + name: "Windows Latest" runs-on: windows-latest steps: - name: Checkout id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Configuring CMake files id: building-files run: | @@ -64,15 +64,15 @@ jobs: id: test-lib run: | cd build - ctest -j10 -C Release -T test --output-on-failure + ctest -j10 -C Debug -T test --output-on-failure macos: - name: "macOS Latest (AppleClang 12.0)" + name: "macOS Latest" runs-on: macos-latest steps: - name: Checkout id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Configuring CMake files id: building-files run: | @@ -85,7 +85,7 @@ jobs: id: test-lib run: | cd build - ctest -j10 -C Release -T test --output-on-failure + ctest -j10 -C Debug -T test --output-on-failure - name: Cleanup id: clean-up run: | diff --git a/.github/workflows/memcheck.yml b/.github/workflows/memcheck.yml index 97508bce..fcbb664d 100644 --- a/.github/workflows/memcheck.yml +++ b/.github/workflows/memcheck.yml @@ -18,12 +18,12 @@ on: [push, pull_request] jobs: linux: - name: "Ubuntu Latest (GNU 9.3.0)" + name: "Ubuntu Latest" runs-on: ubuntu-latest steps: - name: Checkout id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install requirement id: install-requirements run: | diff --git a/.github/workflows/python_binding.yml b/.github/workflows/python_binding.yml index 2156d27b..b7f7a438 100644 --- a/.github/workflows/python_binding.yml +++ b/.github/workflows/python_binding.yml @@ -27,10 +27,10 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Add requirements diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64b9ef31..8cbde944 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,13 +12,17 @@ jobs: semantic-release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' - name: Run semantic-release if: github.repository == 'casbin/casbin-cpp' && github.event_name == 'push' run: | - export PATH="$(yarn global bin):$PATH" - yarn global add semantic-release@19.0.5 + npm install -g semantic-release@19.0.5 semantic-release sleep 10 env: