Skip to content

Nightly

Nightly #18

Workflow file for this run

# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
name: Nightly
on:
schedule:
- cron: "00 04 * * *"
workflow_dispatch:
inputs:
branch:
description: 'Branch to run the nightly'
required: true
type: string
jobs:
FPGA-CW310-SiVal-Nightly:
name: Fpga cw310 sival tests
runs-on: [ubuntu-20.04-fpga, cw310]
env:
GS_PATH: gs://lowrisc-ci-cache/${{ github.repository }}/test_results
BAZEL_TEST_RESULTS: test_results.xml
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Required for the bitstream cache to work.
ref: ${{ inputs.branch || 'earlgrey_1.0.0' }} # Schedule only work on the default branch, but we want to run on a different branch.
- name: Install dependencies
uses: ./.github/actions/install-deps
- name: Run tests after ROM_EXT boot stage
run: |
module load xilinx/vivado
bazel_tests="$(mktemp)"
./bazelisk.sh query 'attr("tags", "[\[ ]cw310_sival_rom_ext[,\]]", tests(//sw/device/tests/...))' \
| grep aes \
> "$bazel_tests"
./bazelisk.sh test --build_tests_only --target_pattern_file="$bazel_tests"
- name: Merge bazel test results
if: success() || failure()
run: |
# Bazel produce one xml for each test. So we merge them together.
find -L bazel-out -name "test.xml" | xargs merge-junit -o $BAZEL_TEST_RESULTS
- name: Publish bazel test results
if: success() || failure()
run: |
PATH=$GS_PATH/${{ github.ref_name }}/${{ github.job }}/$(date +%Y-%m-%d-%H%M%S)_$BAZEL_TEST_RESULTS
echo ">> Uploading $PATH <<"
gcloud storage cp $BAZEL_TEST_RESULTS "$PATH"