From c3b53fd9ed54453a515c88a8ab0b5554d54d1a9f Mon Sep 17 00:00:00 2001 From: rakshasa Date: Sat, 7 Dec 2024 15:51:11 +0000 Subject: [PATCH 1/2] Rearranged workflow steps. --- .github/workflows/PR.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index 94cc18cb2..cd7bdc5f1 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -8,10 +8,6 @@ jobs: runs-on: ubuntu-22.04 steps: - - name: Install Dependencies - run: | - sudo apt-get update - sudo apt-get install -y clang-tidy bear - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} @@ -28,6 +24,10 @@ jobs: autoheader automake --add-missing ./configure + - name: Install Dependencies + run: | + sudo apt-get update + sudo apt-get install -y clang-tidy bear - name: Prepare compile_commands.json run: | bear -- make @@ -65,10 +65,6 @@ jobs: runs-on: ubuntu-22.04 steps: - - name: Install Dependencies - run: | - sudo apt-get update - sudo apt-get install -y libcppunit-dev - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} @@ -85,6 +81,10 @@ jobs: autoheader automake --add-missing ./configure + - name: Install Dependencies + run: | + sudo apt-get update + sudo apt-get install -y libcppunit-dev - name: Build Project run: | make From 5063e7d36be3bc50979303ca48eef7692bc81f40 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Sat, 7 Dec 2024 16:02:20 +0000 Subject: [PATCH 2/2] Fixed. --- .github/workflows/PR.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index cd7bdc5f1..adfe8057c 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -8,6 +8,9 @@ jobs: runs-on: ubuntu-22.04 steps: + - name: Update Packages + run: | + sudo apt-get update - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} @@ -26,7 +29,6 @@ jobs: ./configure - name: Install Dependencies run: | - sudo apt-get update sudo apt-get install -y clang-tidy bear - name: Prepare compile_commands.json run: | @@ -65,6 +67,9 @@ jobs: runs-on: ubuntu-22.04 steps: + - name: Update Packages + run: | + sudo apt-get update - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} @@ -73,6 +78,9 @@ jobs: run: | git remote add upstream "https://github.com/${{ github.event.pull_request.base.repo.full_name }}" git fetch --no-tags --no-recurse-submodules upstream "${{ github.event.pull_request.base.ref }}" + - name: Install Dependencies + run: | + sudo apt-get install -y libcppunit-dev - name: Configure Project run: | libtoolize @@ -81,10 +89,6 @@ jobs: autoheader automake --add-missing ./configure - - name: Install Dependencies - run: | - sudo apt-get update - sudo apt-get install -y libcppunit-dev - name: Build Project run: | make