diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml deleted file mode 100644 index ace8e9238..000000000 --- a/.github/workflows/check.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: build and check - -on: workflow_call - -jobs: - check: - name: build and check - runs-on: ubuntu-latest - steps: - - name: install required packages - run: sudo apt-get update && sudo apt-get install -y libpci-dev libvulkan-dev libwayland-dev libxrandr-dev libxcb-randr0-dev libdconf-dev libdbus-1-dev libxfconf-0-dev librpm-dev libzstd-dev - - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - - - name: configure project - # We reuse the build binary only for the releases. - # We set tweak version to off, because it is wrong, as git tag will happen after this step. Releases don't have a tweak, so this is ok. - run: cmake -DSET_TWEAK=Off . - - - name: build project - run: cmake --build . -j$(nproc) - - - name: run fastfetch - run: ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true - - - name: run flashfetch - run: ./flashfetch - - - name: run tests - run: ctest - - - name: build deb package - run: sh packaging/deb/create.sh . - - - name: perform CodeQL analysis - uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 1a8f5294e..cd099fbbe 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -12,5 +12,31 @@ jobs: - name: checkout repository uses: actions/checkout@v2 - - name: run build and check - uses: ./.github/workflows/check + - name: install required packages + run: sudo apt-get update && sudo apt-get install -y libpci-dev libvulkan-dev libwayland-dev libxrandr-dev libxcb-randr0-dev libdconf-dev libdbus-1-dev libxfconf-0-dev librpm-dev libzstd-dev + + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + + - name: configure project + # We reuse the build binary only for the releases. + # We set tweak version to off, because it is wrong, as git tag will happen after this step. Releases don't have a tweak, so this is ok. + run: cmake . + + - name: build project + run: cmake --build . -j$(nproc) + + - name: run fastfetch + run: ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true + + - name: run flashfetch + run: ./flashfetch + + - name: run tests + run: ctest + + - name: build deb package + run: sh packaging/deb/create.sh . + + - name: perform CodeQL analysis + uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index f09ded9d1..69b48bbbb 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -15,8 +15,34 @@ jobs: - name: checkout repository uses: actions/checkout@v2 - - name: run build and check - uses: ./.github/workflows/check + - name: install required packages + run: sudo apt-get update && sudo apt-get install -y libpci-dev libvulkan-dev libwayland-dev libxrandr-dev libxcb-randr0-dev libdconf-dev libdbus-1-dev libxfconf-0-dev librpm-dev libzstd-dev + + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + + - name: configure project + # We reuse the build binary only for the releases. + # We set tweak version to off, because it is wrong, as git tag will happen after this step. Releases don't have a tweak, so this is ok. + run: cmake -DSET_TWEAK=Off . + + - name: build project + run: cmake --build . -j$(nproc) + + - name: run fastfetch + run: ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true + + - name: run flashfetch + run: ./flashfetch + + - name: run tests + run: ctest + + - name: build deb package + run: sh packaging/deb/create.sh . + + - name: perform CodeQL analysis + uses: github/codeql-action/analyze@v1 - name: get fastfetch version id: get_version_fastfetch