Skip to content

Commit 92e8f23

Browse files
Refactored github actions again
1 parent e09f1d3 commit 92e8f23

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

.github/workflows/check.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: workflow_call
44

55
jobs:
66
check:
7-
name: Build, Run and Analyze fastfetch
7+
name: run build and checks
88
runs-on: ubuntu-latest
99
permissions:
1010
security-events: write
@@ -13,36 +13,33 @@ jobs:
1313
matrix:
1414
language: [ 'cpp' ]
1515
steps:
16-
- name: Checkout repository
17-
uses: actions/checkout@v2
18-
19-
- name: Update and install packages
16+
- name: install required packages
2017
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
2118

2219
- name: Initialize CodeQL
2320
uses: github/codeql-action/init@v1
2421
with:
2522
languages: ${{ matrix.language }}
2623

27-
- name: Configure
24+
- name: configure project
2825
# We reuse the build binary only for the releases.
2926
# 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.
3027
run: cmake -DSET_TWEAK=Off .
3128

32-
- name: Build
29+
- name: build project
3330
run: cmake --build . -j$(nproc)
3431

35-
- name: Run fastfetch
32+
- name: run fastfetch
3633
run: ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true
3734

38-
- name: Run flashfetch
35+
- name: run flashfetch
3936
run: ./flashfetch
4037

41-
- name: Run tests
38+
- name: run tests
4239
run: ctest
4340

44-
- name: Build deb package
41+
- name: build deb package
4542
run: sh packaging/deb/create.sh .
4643

47-
- name: Perform CodeQL Analysis
44+
- name: perform CodeQL analysis
4845
uses: github/codeql-action/analyze@v1

.github/workflows/pull_request.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ on: pull_request
44

55
jobs:
66
manage:
7+
name: manage pull request
78
runs-on: ubuntu-latest
89
steps:
10+
- name: checkout repository
11+
uses: actions/checkout@v2
12+
913
- name: run build and check
1014
uses: ./.github/workflows/check.yml

.github/workflows/push.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,28 @@ on:
66

77
jobs:
88
manage:
9-
name: Create GitHub release
9+
name: manage push
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write
1313
steps:
14+
- name: checkout repository
15+
uses: actions/checkout@v2
16+
1417
- name: run build and check
1518
uses: ./.github/workflows/check.yml
1619

17-
- name: Get fastfetch version
20+
- name: get fastfetch version
1821
id: get_version_fastfetch
1922
run: echo "::set-output name=release::$(./fastfetch --version-raw)"
2023

21-
- name: Get latest release version
24+
- name: get latest release version
2225
id: get_version_release
2326
uses: pozetroninc/github-action-get-latest-release@master
2427
with:
2528
repository: ${{ github.repository }}
2629

27-
- name: Push release
30+
- name: create release
2831
if: steps.get_version_fastfetch.outputs.release != steps.get_version_release.outputs.release
2932
uses: ncipollo/release-action@v1
3033
with:

0 commit comments

Comments
 (0)