Update github actions to support song and media player update

This commit is contained in:
Linus Dierheimer
2022-02-14 00:18:22 +01:00
parent cfb5d204a1
commit a32b1c5887
6 changed files with 68 additions and 110 deletions
+61
View File
@@ -0,0 +1,61 @@
name: "build, run and analyze fastfetch"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
BUILD_TYPE: Release
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install packages
run: sudo apt-get update && sudo apt-get install -y libpci-dev libvulkan-dev libwayland-dev libxrandr-dev libxcb-randr0-dev libdconf-dev libxfconf-0-dev librpm-dev libzstd-dev
- name: Configure
working-directory: ${{github.workspace}}/build
run: cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build .
- name: Run fastfetch
working-directory: ${{github.workspace}}/build
run: ./fastfetch
- name: Run fastfetch-test-strbuf
working-directory: ${{github.workspace}}/build
run: ./fastfetch-test-strbuf