Use workflow instead of action

This commit is contained in:
Linus Dierheimer
2022-03-24 22:15:46 +01:00
parent 634e27bc42
commit d840c7a12d
4 changed files with 40 additions and 46 deletions
+37
View File
@@ -0,0 +1,37 @@
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
+2 -2
View File
@@ -3,7 +3,7 @@ name: manage pull requests
on: pull_request
jobs:
manage:
check:
name: manage pull request
runs-on: ubuntu-latest
permissions:
@@ -13,4 +13,4 @@ jobs:
uses: actions/checkout@v2
- name: run build and check
uses: ./.github/actions/check
uses: ./.github/workflows/check
+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v2
- name: run build and check
uses: ./.github/actions/check
uses: ./.github/workflows/check
- name: get fastfetch version
id: get_version_fastfetch