This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
forked from Fantastic-Dave/xdccget
-
Notifications
You must be signed in to change notification settings - Fork 1
87 lines (81 loc) · 1.94 KB
/
c-cpp.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: C/C++ CI
on:
push:
branches: master
paths:
- .github/workflows/c-cpp.yml
- meson.build
- '**.[ch]'
pull_request:
branches: master
paths:
- .github/workflows/c-cpp.yml
- meson.build
- '**.[ch]'
permissions: {}
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt install libbsd-dev meson
- name: Checkout repository
uses: actions/checkout@v3
- name: Build
run: |
meson setup build
ninja -C build
- name: Test
run: meson test -C build
- name: Upload Meson log as an Artifact
uses: actions/upload-artifact@v3
with:
name: meson-logs
path: build/meson-logs
macOS:
runs-on: macos-latest
steps:
- name: Install dependencies
run: brew install meson
- name: Checkout repository
uses: actions/checkout@v3
- name: Build
run: |
meson setup build
ninja -C build
- name: Test
run: meson test -C build
openbsd:
runs-on: macos-12
steps:
- name: Bootstrap OpenBSD
uses: mario-campos/emulate@v1
with:
operating-system: openbsd-latest
- name: Install dependencies
run: pkg_add meson
- name: Checkout repository
run: git clone --depth 1 https://github.com/mario-campos/xget.git
- name: Build
run: |
meson setup build xget
ninja -C build
- name: Test
run: meson test -C build
freebsd:
runs-on: macos-12
steps:
- name: Bootstrap FreeBSD
uses: mario-campos/emulate@v1
with:
operating-system: freebsd-latest
- name: Install dependencies
run: pkg install -y pkgconf openssl meson
- name: Checkout repository
run: git clone --depth 1 https://github.com/mario-campos/xget.git
- name: Build
run: |
meson setup build xget
ninja -C build
- name: Test
run: meson test -C build