-
Notifications
You must be signed in to change notification settings - Fork 25
104 lines (81 loc) · 2.27 KB
/
main.yaml
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
name: Build
on:
push:
branches: master
pull_request:
branches: master
jobs:
build-void:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version: ['1.20', '1.21', '1.22']
container:
image: 'voidlinux/voidlinux:latest'
steps:
- name: Prepare container
run: |
# Redefine current main repo mirror
echo 'repository=https://repo-default.voidlinux.org/current' > /usr/share/xbps.d/00-repository-main.conf
# Update system xbps
xbps-install -Syu xbps
# Update system
xbps-install -Syu
# Install dependencies
xbps-install -y git make gcc pam-devel libX11-devel
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout
uses: actions/checkout@v4
- name: Git Safe Directory
run: git config --global --add safe.directory /__w/emptty/emptty
- name: Test without tags
run: make test
- name: Test with noxlib tag
run: make test TAGS=noxlib
- name: Test with noutmp tag
run: make test TAGS=noutmp
- name: Test with nopam tag
run: make test TAGS=nopam
- name: Build with noxlib tag
run: |
# Make clean
make clean
# Make build
make build TAGS=noxlib
- name: Build with noutmp tag
run: |
# Make clean
make clean
# Make build
make build TAGS=noutmp
- name: Build with nopam tag
run: |
# Make clean
make clean
# Make build
make build TAGS=nopam
- name: Build without tags
run: |
# Make clean
make clean
# Make build
make build
- name: Test install-pam
run: make install-pam
- name: Test install-manual
run: make install-manual
- name: Test install-config
run: make install-config
- name: Test install-runit
run: make install-runit
- name: Test install-motd-gen
run: make install-motd-gen
- name: Test install
run: make install
- name: Test uninstall
run: make uninstall