-
Notifications
You must be signed in to change notification settings - Fork 3
120 lines (117 loc) · 3.52 KB
/
ci.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: ci
on: [push, pull_request]
jobs:
build-bullseye:
name: Linux (Debian bullseye amd64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-ruby@v1
- run: make ci-bullseye
- uses: actions/upload-artifact@v2
with:
name: bullseye-amd64-deb
path: target/assets/muter_*.deb
build-bullseye-armel:
name: Linux (Debian bullseye armel)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-ruby@v1
- run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
docker version -f '{{.Server.Experimental}}'
- uses: docker/setup-qemu-action@v1
- run: make ci-bullseye
env:
PLATFORM: linux/arm/v5
- uses: actions/upload-artifact@v2
with:
name: bullseye-armel-deb
path: target/assets/muter_*.deb
build-bullseye-arm64:
name: Linux (Debian bullseye arm64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-ruby@v1
- run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker.service
docker version -f '{{.Server.Experimental}}'
- uses: docker/setup-qemu-action@v1
- run: make ci-bullseye
env:
PLATFORM: linux/arm64
- uses: actions/upload-artifact@v2
with:
name: bullseye-arm64-deb
path: target/assets/muter_*.deb
build-oldest:
name: Linux (oldest Rust)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-ruby@v1
- run: make ci-oldest
build-stable:
name: Linux (Rust stable)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-ruby@v1
- run: make ci-stable
env:
FEATURES: modern
build-nightly:
name: Linux (Rust nightly)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-ruby@v1
- run: make ci-nightly
env:
FEATURES: modern
build-freebsd:
name: FreeBSD
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-ruby@v1
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- run: sudo apt-get -y install vagrant vagrant-libvirt libvirt-daemon-system
- run: sudo service libvirtd start
- run: sudo chmod 666 /var/run/libvirt/libvirt-sock
- run: make ci-freebsd
build-netbsd:
name: NetBSD
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- run: sudo apt-get -y install vagrant vagrant-libvirt libvirt-daemon-system
- run: sudo service libvirtd start
- run: sudo chmod 666 /var/run/libvirt/libvirt-sock
- run: make ci-netbsd
build-mac:
name: macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- run: brew install ruby asciidoctor rust
- run: make test-full
env:
FEATURES: modern