actions: vendor sources with submodules for releases #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Checkout and Create Clean Tarball | |
on: [push, pull_request] | |
jobs: | |
create-clean-tarball: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository with submodules | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Create clean tarball | |
run: | | |
git archive --format=tar HEAD -o yosys-src-vendored.tar | |
git submodule foreach ' | |
git archive --format=tar --prefix="${sm_path}/" HEAD --output=${toplevel}/vendor-${name}.tar | |
' | |
tar --concatenate --file=yosys-src-vendored.tar vendor-*.tar | |
gzip yosys-src-vendored.tar | |
- name: Store tarball artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: clean-sources-tarball | |
path: yosys-src-vendored.tar.gz | |
retention-days: 1 |