Skip to content

Commit

Permalink
Update installation test logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jordancarlin committed Aug 8, 2024
1 parent a3f124e commit 43e2da7
Showing 1 changed file with 89 additions and 15 deletions.
104 changes: 89 additions & 15 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ jobs:
df -h
- name: install
run: sudo ./bin/wally-tool-chain-install.sh --clean
- name: check buildroot
run: |
source setup.sh
ls $RISCV/linux-testvectors
- name: Upload installation logs
uses: actions/upload-artifact@v4
if: always()
with:
name: installation-logs-${{ matrix.os }}
path: /opt/riscv/logs/
- name: make tests
run: |
source setup.sh
Expand All @@ -36,16 +38,12 @@ jobs:
run: |
source setup.sh
regression-wally
- uses: actions/upload-artifact@v4
- name: Upload regression logs
uses: actions/upload-artifact@v4
if: always()
with:
name: regression-logs-${{ matrix.os }}
path: ${{ github.workspace }}/sim/verilator/logs/
- uses: actions/upload-artifact@v4
if: always()
with:
name: installation-logs-${{ matrix.os }}
path: /opt/riscv/logs/

rhel_family_install:
name: Test installation on ${{ matrix.os }}
Expand Down Expand Up @@ -79,10 +77,51 @@ jobs:
df -h
- name: install
run: sudo ./bin/wally-tool-chain-install.sh --clean
- name: check buildroot
- name: Upload installation logs
uses: actions/upload-artifact@v4
if: always()
with:
name: installation-logs-${{ env.ARTIFACT_NAME }}
path: /opt/riscv/logs/
- name: make tests
run: |
source setup.sh
ls $RISCV/linux-testvectors
sed -i 's,jobs=4,jobs=3,g' "$WALLY"/tests/riscof/config.ini
make riscof
- name: regression
run: |
source setup.sh
regression-wally
- name: Upload regression logs
uses: actions/upload-artifact@v4
if: always()
with:
name: regression-logs-${{ env.ARTIFACT_NAME }}
path: ${{ github.workspace }}/sim/verilator/logs/


user_install:
name: Test installation with user permissions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Free up storage
run: |
df -h
./.github/cli-space-cleanup.sh
df -h
- name: install packages with sudo
run: sudo ./bin/wally-package-install.sh
- name: install
run: ./bin/wally-tool-chain-install.sh --clean
- name: Upload installation logs
uses: actions/upload-artifact@v4
if: always()
with:
name: installation-logs-user-install
path: ~/riscv/logs/
- name: make tests
run: |
source setup.sh
Expand All @@ -92,12 +131,47 @@ jobs:
run: |
source setup.sh
regression-wally
- uses: actions/upload-artifact@v4
- name: Upload regression logs
uses: actions/upload-artifact@v4
if: always()
with:
name: regression-logs-${{ env.ARTIFACT_NAME }}
name: regression-logs-user-install
path: ${{ github.workspace }}/sim/verilator/logs/
- uses: actions/upload-artifact@v4


custom_location_install:
name: Test installation with custom location
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Free up storage
run: |
df -h
./.github/cli-space-cleanup.sh
df -h
- name: install
run: sudo ./bin/wally-tool-chain-install.sh --clean /home/riscv
- name: Upload instalation logs
uses: actions/upload-artifact@v4
if: always()
with:
name: installation-logs-custom-location-install
path: /home/riscv/logs/
- name: Update setup.sh with new $RISCV location
run: sed -i 's,/opt/riscv,/home/riscv,g' setup.sh
- name: make tests
run: |
source setup.sh
sed -i 's,jobs=4,jobs=3,g' "$WALLY"/tests/riscof/config.ini
make riscof
- name: regression
run: |
source setup.sh
regression-wally
- name: Upload regression logs
uses: actions/upload-artifact@v4
if: always()
with:
name: installation-logs-${{ env.ARTIFACT_NAME }}
Expand Down

0 comments on commit 43e2da7

Please sign in to comment.