Skip to content

Commit 65ce2ea

Browse files
Hopefully finally fix github actions
1 parent d840c7a commit 65ce2ea

File tree

3 files changed

+56
-41
lines changed

3 files changed

+56
-41
lines changed

.github/workflows/check.yml

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

.github/workflows/pull_request.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,31 @@ jobs:
1212
- name: checkout repository
1313
uses: actions/checkout@v2
1414

15-
- name: run build and check
16-
uses: ./.github/workflows/check
15+
- name: install required packages
16+
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
17+
18+
- name: Initialize CodeQL
19+
uses: github/codeql-action/init@v1
20+
21+
- name: configure project
22+
# We reuse the build binary only for the releases.
23+
# 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.
24+
run: cmake .
25+
26+
- name: build project
27+
run: cmake --build . -j$(nproc)
28+
29+
- name: run fastfetch
30+
run: ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true
31+
32+
- name: run flashfetch
33+
run: ./flashfetch
34+
35+
- name: run tests
36+
run: ctest
37+
38+
- name: build deb package
39+
run: sh packaging/deb/create.sh .
40+
41+
- name: perform CodeQL analysis
42+
uses: github/codeql-action/analyze@v1

.github/workflows/push.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,34 @@ jobs:
1515
- name: checkout repository
1616
uses: actions/checkout@v2
1717

18-
- name: run build and check
19-
uses: ./.github/workflows/check
18+
- name: install required packages
19+
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
20+
21+
- name: Initialize CodeQL
22+
uses: github/codeql-action/init@v1
23+
24+
- name: configure project
25+
# We reuse the build binary only for the releases.
26+
# 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.
27+
run: cmake -DSET_TWEAK=Off .
28+
29+
- name: build project
30+
run: cmake --build . -j$(nproc)
31+
32+
- name: run fastfetch
33+
run: ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true
34+
35+
- name: run flashfetch
36+
run: ./flashfetch
37+
38+
- name: run tests
39+
run: ctest
40+
41+
- name: build deb package
42+
run: sh packaging/deb/create.sh .
43+
44+
- name: perform CodeQL analysis
45+
uses: github/codeql-action/analyze@v1
2046

2147
- name: get fastfetch version
2248
id: get_version_fastfetch

0 commit comments

Comments
 (0)