mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-02 17:55:19 +00:00
Add non-sudo and custom location installation tests
This commit is contained in:
parent
5f9e34788a
commit
521633698c
23
.github/workflows/install.yml
vendored
23
.github/workflows/install.yml
vendored
@ -140,9 +140,18 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
custom_location_install:
|
custom_location_install:
|
||||||
name: Test installation with custom location
|
name: Test installation with custom location ${{ matrix.path }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
path: ["/home/riscv"]
|
||||||
steps:
|
steps:
|
||||||
|
- name: Unique name for Artifacts
|
||||||
|
id: prep_artifact_name
|
||||||
|
run: |
|
||||||
|
name=$(echo -n "${{ matrix.os }}" | sed -e 's/[ \t:\/\\"<>|*?]/-/g' -e 's/--*/-/g')
|
||||||
|
echo "ARTIFACT_NAME=$name" >> $GITHUB_ENV
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
@ -152,15 +161,15 @@ jobs:
|
|||||||
./.github/cli-space-cleanup.sh
|
./.github/cli-space-cleanup.sh
|
||||||
df -h
|
df -h
|
||||||
- name: install
|
- name: install
|
||||||
run: sudo ./bin/wally-tool-chain-install.sh --clean /home/riscv
|
run: sudo ./bin/wally-tool-chain-install.sh --clean ${{ matrix.path }}
|
||||||
- name: Upload instalation logs
|
- name: Upload instalation logs
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: installation-logs-custom-location-install
|
name: installation-logs-custom-location-install-${{ env.ARTIFACT_NAME }}
|
||||||
path: /home/riscv/logs/
|
path: ${{ matrix.path }}/logs/
|
||||||
- name: Update setup.sh with new $RISCV location
|
- name: Update setup.sh with new $RISCV location
|
||||||
run: sed -i 's,/opt/riscv,/home/riscv,g' setup.sh
|
run: sed -i 's,exit 1,export RISCV=${{ matrix.path }},g' setup.sh
|
||||||
- name: make tests
|
- name: make tests
|
||||||
run: |
|
run: |
|
||||||
source setup.sh
|
source setup.sh
|
||||||
@ -174,5 +183,5 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: installation-logs-${{ env.ARTIFACT_NAME }}
|
name: regression-logs-custom-location-install-${{ env.ARTIFACT_NAME }}
|
||||||
path: /opt/riscv/logs/
|
path: ${{ github.workspace }}/sim/verilator/logs/
|
||||||
|
Loading…
Reference in New Issue
Block a user