Skip to content

Commit

Permalink
Change format of release package (#2558)
Browse files Browse the repository at this point in the history
Now release package doesn't assume user have superuser privileges to
install it.

Requires: #2556
  • Loading branch information
tgorochowik authored Sep 12, 2024
2 parents 9f1c3d6 + 083ed97 commit ca23376
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 72 deletions.
10 changes: 8 additions & 2 deletions .ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,14 @@ build_package:
- apt update && apt install -y $BUILD_DEPENDENCIES
- echo "##/ Build yosys, surelog and synlig binaries \##"
- git submodule sync && git submodule update --init --recursive third_party/{surelog,yosys}
- make install -j $(nproc) DESTDIR=out
- (cd out && tar -zcvf release.tar.gz usr)
- make install -j $(nproc) PREFIX=out
- mkdir synlig
- cp out/bin/synlig synlig/
- cp -r out/share/synlig synlig/share
- tar -zcvf release.tar.gz synlig
artifacts:
paths:
- release.tar.gz

.job_template: &parsing_test
stage: "Run parsing and formal verification tests"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/bsg-test-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
;
- name: Download binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: binaries-plugin

Expand All @@ -77,7 +77,7 @@ jobs:
cat tests/bsg_micro_designs/build/bsg_micro_designs_summary.md > $GITHUB_STEP_SUMMARY
- name: Upload BSG Micro Design tests' output
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: bsg-outputs
path: |
Expand All @@ -86,7 +86,7 @@ jobs:
tests/bsg_micro_designs/build/*/parameters.txt
- name: Upload BSG Micro Design tests' logs
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: bsg-logs
path: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/formal-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
./tests/scripts/run_formal.sh --name $TEST_SUITE_NAME load_submodules
- name: Download binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: binaries-release

Expand All @@ -54,7 +54,7 @@ jobs:
run: tar -xf binaries-release.tar

- name: Download tools
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: tools

Expand All @@ -77,16 +77,16 @@ jobs:
tar cf ${TEST_SUITE_NAME}.tar tests/*/*
- name: Upload formal verification logs
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: formal-verification-logs
name: formal-verification-logs-${{ matrix.name }}
path: |
build/*.tar
- name: Upload load graphs
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: plots
name: plots_formal_verification_${{ matrix.name }}
path: |
**/plot_*.svg
Expand Down
66 changes: 33 additions & 33 deletions .github/workflows/large-designs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
./tests/scripts/run_large_designs.sh --name ibex load_submodules
- name: Download binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: binaries-release

Expand All @@ -48,16 +48,16 @@ jobs:
enable_vivado 2017.2
./tests/scripts/run_large_designs.sh --name ibex run
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: lowrisc_ibex_top_artya7_surelog_0.1.bit
path: tests/build/lowrisc_ibex_top_artya7_surelog_0.1/synth-vivado/lowrisc_ibex_top_artya7_surelog_0.1.bit

- name: Upload load graphs
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: plots
name: plots_ibex_synth
path: |
**/plot_*.svg
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
./tests/scripts/run_large_designs.sh --name ibex_f4pga load_submodules
- name: Download binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: binaries-plugin

Expand All @@ -99,16 +99,16 @@ jobs:
run: |
./tests/scripts/run_large_designs.sh --name ibex_f4pga run
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: top_artya7.bit
path: ./tests/build/lowrisc_ibex_top_artya7_surelog_0.1/synth-symbiflow/top_artya7.bit

- name: Upload load graphs
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: plots
name: plots_ibex_synth_f4pga
path: |
**/plot_*.svg
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
./tests/scripts/run_large_designs.sh --name opentitan_9d82960888 load_submodules
- name: Download binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: binaries-release

Expand All @@ -164,7 +164,7 @@ jobs:
sed -n $start,"$end"p $FILE_NAME > synlig.ast
- name: Upload AST
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: ${{github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')}}
with:
name: opentitan-synlig.ast
Expand All @@ -183,16 +183,16 @@ jobs:
# mkdir compare
# ./github/scripts/compare_ast.py opentitan-yosys.ast yosys.ast

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: lowrisc_systems_top_earlgrey_nexysvideo_0.1.bit
path: tests/build/lowrisc_systems_top_earlgrey_nexysvideo_0.1/synth-vivado/lowrisc_systems_top_earlgrey_nexysvideo_0.1.bit

- name: Upload load graphs
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: plots
name: plots_opentitan_9d82960888_synth
path: |
**/plot_*.svg
Expand Down Expand Up @@ -225,7 +225,7 @@ jobs:
./tests/scripts/run_large_designs.sh --name opentitan load_submodules
- name: Download binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: binaries-release

Expand All @@ -240,16 +240,16 @@ jobs:
pip install virtualenv
./tests/scripts/run_large_designs.sh --name opentitan run
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: lowrisc_systems_custom_tiny_chip_custom_tiny_nexysvideo_0.1.edif
path: tests/build/lowrisc_systems_custom_tiny_chip_custom_tiny_nexysvideo_0.1/synth-yosys/lowrisc_systems_custom_tiny_chip_custom_tiny_nexysvideo_0.1.edif

- name: Upload load graphs
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: plots
name: plots_opentitan_synth
path: |
**/plot_*.svg
Expand Down Expand Up @@ -293,7 +293,7 @@ jobs:
./tests/scripts/run_large_designs.sh --name opentitan_parse_${{ matrix.file-name }} load_submodules
- name: Download binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: binaries-release

Expand All @@ -309,7 +309,7 @@ jobs:
- name: Upload logs
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: opentitan-logs-${{ matrix.file-name }}
path: |
Expand All @@ -320,9 +320,9 @@ jobs:
- name: Upload load graphs
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: plots
name: plots_opentitan_parse_report_${{ matrix.file-name }}
path: |
**/plot_*.svg
Expand Down Expand Up @@ -352,7 +352,7 @@ jobs:
./tests/scripts/run_large_designs.sh --name veer load_submodules
- name: Download binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: binaries-release

Expand All @@ -364,16 +364,16 @@ jobs:
run: |
./tests/scripts/run_large_designs.sh --name veer run
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: chipsalliance.org_cores_VeeR_EH1_1.9.edif
path: tests/build/chipsalliance.org_cores_VeeR_EH1_1.9/synth-vivado/chipsalliance.org_cores_VeeR_EH1_1.9.edif

- name: Upload load graphs
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: plots
name: plots_veer_synth
path: |
**/plot_*.svg
Expand Down Expand Up @@ -406,7 +406,7 @@ jobs:
./tests/scripts/run_large_designs.sh --name blackparrot_AMD load_submodules
- name: Download binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: binaries-release

Expand All @@ -418,16 +418,16 @@ jobs:
run: |
./tests/scripts/run_large_designs.sh --name blackparrot_AMD run
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: bp_e_bp_unicore_cfg.edif
path: tests/build/bp_e_bp_unicore_cfg.edif

- name: Upload load graphs
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: plots
name: plots_blackparrot_synth_xilinx
path: |
**/plot_*.svg
Expand Down Expand Up @@ -460,7 +460,7 @@ jobs:
./tests/scripts/run_large_designs.sh --name blackparrot_ASIC load_submodules
- name: Download binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: binaries-release

Expand All @@ -472,7 +472,7 @@ jobs:
run: |
./tests/scripts/run_large_designs.sh --name blackparrot_ASIC run
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: asic-flow-logs
path: |
Expand All @@ -483,8 +483,8 @@ jobs:
- name: Upload load graphs
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: plots
name: plots_blackparrot_synth_asic
path: |
**/plot_*.svg
Loading

0 comments on commit ca23376

Please sign in to comment.