From bbe178b62abcff6238effd33e112c69fedc7b6d0 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 5 Mar 2025 18:15:12 +0800 Subject: ci: fix dependencies - we need latest version of g++ for c++23 remove: doxygen --- .github/workflows/ci.yml | 45 +++++---------------------------------------- 1 file changed, 5 insertions(+), 40 deletions(-) (limited to '.github/workflows/ci.yml') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 419b77b..d911da3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,8 +21,8 @@ jobs: clang-format: runs-on: ubuntu-latest steps: - - name: Install dependencies(clang-format) - run: sudo apt update && sudo apt install -y clang-format + - name: Install dependencies(clang-format & clang-tidy) + run: sudo apt update && sudo apt install -y g++ && sudo apt install -y clang-format && sudo apt install -y clang-tidy - name: Checkout repository uses: actions/checkout@v4 @@ -47,6 +47,9 @@ jobs: runs-on: ubuntu-latest steps: + - name: Install dependencies(g++) + run: sudo apt update && sudo apt install -y g++ + - name: Checkout repository uses: actions/checkout@v4 with: @@ -72,41 +75,3 @@ jobs: with: name: Artifact path: bin/ - doxygen: - runs-on: ubuntu-latest - if: ${{ github.event_name == 'push' && format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }} - - steps: - - name: Install dependencies(doxygen, graphviz) - run: sudo apt update && sudo apt install -y doxygen graphviz - - - name: Checkout repository - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} - ssh-key: ${{ secrets.DEPLOY_KEY }} - fetch-depth: 0 - - - name: Generate Doxygen documentation - run: doxygen - - - name: Push changes - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: "bump: doxygen" - commit_user_name: "github-actions[bot]" - commit_user_email: "github-actions[bot]@users.noreply.github.com" - commit_author: "github-actions[bot] " - # commit_branch: ${{ github.head_ref }} - - - name: Deploy to Github Pages - uses: peaceiris/actions-gh-pages@v4 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs - - - name: Upload Artifact - uses: actions/upload-artifact@v4 - with: - name: Doxygen - path: docs/ -- cgit v1.2.3