-
Notifications
You must be signed in to change notification settings - Fork 895
34 lines (31 loc) · 1.01 KB
/
source-vendor.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
name: Checkout and Create Clean Tarball
on: [push, pull_request]
jobs:
create-clean-tarball:
runs-on: ubuntu-latest
steps:
- name: Checkout Yosys
uses: actions/checkout@v4
with:
submodules: true
- name: Create clean tarball
run: |
# List excludes .git etc
echo ls -a
ls -a
echo ls -a abc
ls -a abc
echo ls -a libs/cxxopts
ls -a libs/cxxopts
git ls-files > files_to_include.txt
git submodule foreach --recursive 'git ls-files | sed "s|^|$path/|"' >> files_to_include.txt
echo trying to include the following files:
cat files_to_include.txt
echo tar:
# Create a gzipped tarball using the list of files
tar -czf yosys-src-vendored.tar.gz -T files_to_include.txt
- name: Upload tarball artifact
uses: actions/upload-artifact@v3
with:
name: clean-sources-tarball
path: yosys-src-vendored.tar.gz