-
Notifications
You must be signed in to change notification settings - Fork 895
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actions: vendor sources with submodules for releases
- Loading branch information
1 parent
61ed9b6
commit 3519d61
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[submodule "abc"] | ||
path = abc | ||
url = https://github.com/YosysHQ/abc | ||
[submodule "libs/cxxopts"] | ||
# Don't use paths as names to avoid git archive problems | ||
[submodule "cxxopts"] | ||
path = libs/cxxopts | ||
url = https://github.com/jarro2783/cxxopts |