Skip to content

Commit d840c7a

Browse files
Use workflow instead of action
1 parent 634e27b commit d840c7a

File tree

4 files changed

+40
-46
lines changed

4 files changed

+40
-46
lines changed

.github/actions/check/action.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/check.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: build and check
2+
3+
on: workflow_call
4+
5+
jobs:
6+
check:
7+
name: build and check
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: install required packages
11+
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
12+
13+
- name: Initialize CodeQL
14+
uses: github/codeql-action/init@v1
15+
16+
- name: configure project
17+
# We reuse the build binary only for the releases.
18+
# 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.
19+
run: cmake -DSET_TWEAK=Off .
20+
21+
- name: build project
22+
run: cmake --build . -j$(nproc)
23+
24+
- name: run fastfetch
25+
run: ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true
26+
27+
- name: run flashfetch
28+
run: ./flashfetch
29+
30+
- name: run tests
31+
run: ctest
32+
33+
- name: build deb package
34+
run: sh packaging/deb/create.sh .
35+
36+
- name: perform CodeQL analysis
37+
uses: github/codeql-action/analyze@v1

.github/workflows/pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: manage pull requests
33
on: pull_request
44

55
jobs:
6-
manage:
6+
check:
77
name: manage pull request
88
runs-on: ubuntu-latest
99
permissions:
@@ -13,4 +13,4 @@ jobs:
1313
uses: actions/checkout@v2
1414

1515
- name: run build and check
16-
uses: ./.github/actions/check
16+
uses: ./.github/workflows/check

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/checkout@v2
1717

1818
- name: run build and check
19-
uses: ./.github/actions/check
19+
uses: ./.github/workflows/check
2020

2121
- name: get fastfetch version
2222
id: get_version_fastfetch

0 commit comments

Comments
 (0)