Skip to content

Let no-WM window to match backend dimensions #748

Let no-WM window to match backend dimensions

Let no-WM window to match backend dimensions #748

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
detect-code-related-file-changes:
runs-on: ubuntu-24.04
outputs:
has_code_related_changes: ${{ steps.set_has_code_related_changes.outputs.has_code_related_changes }}
steps:
- name: Check out the repository
uses: actions/checkout@v6
- name: Test changed files
id: changed-files
uses: tj-actions/changed-files@v47
with:
files: |
.ci/**
mk/**
include/**
src/**
backend/**
apps/**
tools/**
.clang-format
Makefile
- name: Set has_code_related_changes
id: set_has_code_related_changes
run: |
if [[ ${{ steps.changed-files.outputs.any_changed }} == true ]]; then
echo "has_code_related_changes=true" >> $GITHUB_OUTPUT
else
echo "has_code_related_changes=false" >> $GITHUB_OUTPUT
fi
host-x64:
needs: [detect-code-related-file-changes]
if: needs.detect-code-related-file-changes.outputs.has_code_related_changes == 'true'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: install-dependencies
run: |
sudo apt-get update -q -y
sudo apt-get install -y libsdl2-dev libjpeg-dev libpng-dev libcairo2-dev
shell: bash
- name: default build
run: |
make defconfig
make
coding-style:
needs: [detect-code-related-file-changes]
if: needs.detect-code-related-file-changes.outputs.has_code_related_changes == 'true'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: coding convention
run: |
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc > /dev/null
echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-20 main" | sudo tee /etc/apt/sources.list.d/llvm.list > /dev/null
sudo apt-get update -q -y
sudo apt-get install -q -y clang-format-20
.ci/check-newline.sh
.ci/check-format.sh
shell: bash