-
Notifications
You must be signed in to change notification settings - Fork 0
/
act-cli.spec
161 lines (145 loc) · 5.48 KB
/
act-cli.spec
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Name: act-cli
Version: 0.2.71
Release: 1%{?dist}
Summary: Run GitHub Actions locally.
License: MIT
URL: https://github.com/nektos/act
Source0: https://github.com/nektos/act/archive/v%{version}.tar.gz
BuildRequires: golang
BuildRequires: git
Requires: (moby or podman or docker or docker-ce or docker-ce-cli or docker-ee)
%description
`act` reads GitHub Actions workflows and determines the set of actions that
need to be run. It uses the Docker API to either pull or build the necessary
images, and determines the execution path based on the defined dependencies.
It then uses the Docker API to run containers for each action based on the
images prepared earlier. The environment variables and filesystem are all
configured to match what GitHub provides.
%prep
tar -xf %{SOURCE0}
%build
cd act-%{version}
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode=external -X main.version=%{version}"
%install
rm -rf %{buildroot} && mkdir -p %{buildroot}%{_bindir}/ && cd act-%{version}
install -m 0755 act %{buildroot}%{_bindir}/act
mkdir -p %{buildroot}%{_datadir}/licenses/%{name}/
install -m 0644 LICENSE %{buildroot}%{_datadir}/licenses/%{name}/
%verifyscript
%{buildroot}%{_bindir}/act --version
%files
%{_bindir}/act
%license %{_datadir}/licenses/%{name}/LICENSE
%changelog
* Wed Jan 01 2025 Gonçalo Silva <[email protected]>
- Update to 0.2.71
* Sun Dec 01 2024 Gonçalo Silva <[email protected]>
- Update to 0.2.70
* Fri Nov 01 2024 Gonçalo Silva <[email protected]>
- Update to 0.2.69
* Tue Oct 01 2024 Gonçalo Silva <[email protected]>
- Update to 0.2.68
* Tue Sep 10 2024 Gonçalo Silva <[email protected]>
- Update to 0.2.67
* Sun Sep 01 2024 Gonçalo Silva <[email protected]>
- Update to 0.2.66
* Thu Aug 01 2024 Gonçalo Silva <[email protected]>
- Update to 0.2.65
* Mon Jul 01 2024 Gonçalo Silva <[email protected]>
- Update to 0.2.64
* Sat Jun 01 2024 Gonçalo Silva <[email protected]>
- Update to 0.2.63
* Wed May 01 2024 Gonçalo Silva <[email protected]>
- Update to 0.2.62
* Mon Apr 01 2024 Gonçalo Silva <[email protected]>
- Update to 0.2.61
* Fri Mar 01 2024 Gonçalo Silva <[email protected]>
- Update to 0.2.60
* Thu Feb 01 2024 Gonçalo Silva <[email protected]>
- Update to 0.2.59
* Thu Feb 01 2024 Gonçalo Silva <[email protected]>
- Update to 0.2.58
* Mon Jan 01 2024 Gonçalo Silva <[email protected]>
- Update to 0.2.57
* Sun Dec 17 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.56
* Fri Dec 01 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.55
* Tue Nov 14 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.54
* Wed Nov 01 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.53
* Sun Oct 01 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.52
* Sat Sep 23 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.51
* Fri Sep 01 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.50
* Tue Aug 01 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.49
* Mon Jul 10 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.48
* Thu Jun 01 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.46
* Mon May 01 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.45
* Sat Apr 01 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.44
* Wed Mar 01 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.43
* Thu Feb 02 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.42
* Wed Feb 01 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.41
* Mon Jan 16 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.40
* Mon Jan 16 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.39
* Mon Jan 16 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.38
* Mon Jan 16 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.36
* Sun Jan 01 2023 Gonçalo Silva <[email protected]>
- Update to 0.2.35
* Thu Dec 01 2022 Gonçalo Silva <[email protected]>
- Update to 0.2.34
* Tue Nov 01 2022 Gonçalo Silva <[email protected]>
- Update to 0.2.33
* Sat Oct 01 2022 Gonçalo Silva <[email protected]>
- Update to 0.2.32
* Thu Sep 01 2022 Gonçalo Silva <[email protected]>
- Update to 0.2.31
* Mon Aug 01 2022 Gonçalo Silva <[email protected]>
- Update to 0.2.30
* Fri Jul 01 2022 Gonçalo Silva <[email protected]>
- Update to 0.2.29
* Tue Jun 21 2022 Gonçalo Silva <[email protected]>
- Update to 0.2.28
* Tue Jun 21 2022 Gonçalo Silva <[email protected]>
- Update to 0.2.27
* Tue Mar 22 2022 Gonçalo Silva <[email protected]>
- Update to 0.2.26
* Sat Feb 12 2022 Gonçalo Silva <[email protected]>
- Update to 0.2.25
* Sat Feb 12 2022 Gonçalo Silva <[email protected]>
- Update to 0.2.24
* Wed Nov 24 2021 Gonçalo Silva <[email protected]>
- Update to 0.2.25
* Tue Aug 03 2021 Gonçalo Silva <[email protected]>
- Update to 0.2.24
* Fri Jun 11 2021 Gonçalo Silva <[email protected]>
- Update to 0.2.23
* Thu May 06 2021 Gonçalo Silva <[email protected]>
- Update to 0.2.22
* Sun May 02 2021 Gonçalo Silva <[email protected]>
- act 0.2.21