-
Notifications
You must be signed in to change notification settings - Fork 21
36 lines (35 loc) · 954 Bytes
/
build-test.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
name: Build test
on:
- push
- pull_request
jobs:
ubuntu-build-test:
name: Build project (Ubuntu)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install build dependencies
run: |
sudo apt update
sudo apt install -y build-essential pkg-config \
libncurses5-dev libncursesw5-dev libmpv-dev mpv libnotify4
- name: Compile project
run: |
sudo make install
macos-build-test:
name: Build project (macOS)
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup MacPorts
uses: melusina-org/[email protected]
- name: Install build dependencies
run: |
brew install gcc
sudo port install ncurses
sudo port install mpv +libmpv
- name: Compile project
run: |
sudo make install