-
Notifications
You must be signed in to change notification settings - Fork 36
39 lines (33 loc) · 949 Bytes
/
c.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: C CI
on: [push]
jobs:
check-on-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: preparation
run: |
sudo apt-get update
sudo apt-get install asciidoc gettext libncurses-dev
- name: configure
run: ./configure
- name: make distcheck
run: make -j$(nproc) distcheck
- name: make check as root
run: sudo make -j$(nproc) check
check-on-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: preparation
run: brew install asciidoc gettext ncurses
- name: configure
run: ./configure CADDS="-I$(brew --prefix gettext)/include" LDADDS="-L$(brew --prefix gettext)/lib"
- name: make check
run: make -j$(sysctl -n hw.logicalcpu) check
summarize:
runs-on: ubuntu-latest
needs: [check-on-ubuntu, check-on-macos]
if: ${{ always() }}
steps:
- uses: Kesin11/actions-timeline@v2