Skip to content

Workflow file for this run

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
ls
echo ls abc
ls abc
echo ls libs/cxxopts
ls libs/cxxopts
git ls-files > files_to_include.txt
git submodule foreach --recursive 'git ls-files | sed "s|^|$path/|"' >> files_to_include.txt
# 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