data/gamemode*: switch to using posix shell #155
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
actions: write | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential meson appstream clang clang-format clang-tools libdbus-1-dev libinih-dev libsystemd-dev systemd-dev | |
- name: Check format | |
env: | |
CI: "true" | |
run: | | |
./scripts/format-check.sh | |
- name: Build and install | |
env: | |
CI: "true" | |
run: | | |
./bootstrap.sh -Dwith-examples=true | |
- name: Tests | |
run: | | |
meson test -C builddir | |
- name: Simulate game | |
run: | | |
dbus-run-session -- gamemode-simulate-game | |
- name: Static analyser check | |
run: | | |
./scripts/static-analyser-check.sh | |
- name: Upload logs | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: logs | |
path: | | |
builddir/meson-logs/ |