blob: 43db679f0aeb409e9257d053532b494c9b01d0f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
name: GitHub Actions Demo
run-name: ${{ github.actor }} pushed a new commit
on: [push]
jobs:
Compile-and-Test:
runs-on: ubuntu-latest
steps:
- name: Install system dependencies, xmake, etc
run: |
sudo add-apt-repository ppa:xmake-io/xmake
sudo apt update
sudo apt install -y xmake libxrandr-dev clang-format
- name: Check out repository code
uses: actions/checkout@v4
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: Check formatting
run: find src/ -iname *.h -o -iname *.c | xargs clang-format --style=file --dry-run --Werror
- name: Compile C code
run: xmake build -y
# - name: Run tests
# run: xmake run -g tests
|