Commit cf4af96 1 parent 61ed9b6 commit cf4af96 Copy full SHA for cf4af96
File tree 3 files changed +38
-1
lines changed
3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Create source archive with vendored dependencies
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ vendor-sources :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - name : Checkout repository with submodules
10
+ uses : actions/checkout@v4
11
+ with :
12
+ submodules : ' recursive'
13
+
14
+ - name : Create clean tarball
15
+ run : |
16
+ git archive --format=tar HEAD -o yosys-src-vendored.tar
17
+ git submodule foreach '
18
+ git archive --format=tar --prefix="${sm_path}/" HEAD --output=${toplevel}/vendor-${name}.tar
19
+ '
20
+ tar --concatenate --file=yosys-src-vendored.tar vendor-*.tar
21
+ # 2008 bug https://lists.gnu.org/archive/html/bug-tar/2008-08/msg00002.html
22
+ for file in vendor-*.tar; do
23
+ tar --concatenate --file=yosys-src-vendored.tar "$file"
24
+ done
25
+
26
+ gzip yosys-src-vendored.tar
27
+
28
+ - name : Store tarball artifact
29
+ uses : actions/upload-artifact@v4
30
+ with :
31
+ name : vendored-sources
32
+ path : yosys-src-vendored.tar.gz
33
+ retention-days : 1
Original file line number Diff line number Diff line change 1
1
[submodule "abc "]
2
2
path = abc
3
3
url = https://github.com/YosysHQ/abc
4
- [submodule "libs/cxxopts "]
4
+ # Don't use paths as names to avoid git archive problems
5
+ [submodule "cxxopts "]
5
6
path = libs/cxxopts
6
7
url = https://github.com/jarro2783/cxxopts
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ Yosys is free software licensed under the ISC license (a GPL
33
33
compatible license that is similar in terms to the MIT license
34
34
or the 2-clause BSD license).
35
35
36
+ Third-party software distributed alongside this software
37
+ is licensed under compatible licenses.
38
+ Please refer to ` abc ` and ` libs ` subdirectories for their license terms.
36
39
37
40
Web Site and Other Resources
38
41
============================
You can’t perform that action at this time.
0 commit comments