add license #5
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
# Copyright (C) 2024 BEIJING DATENLORD TECHNOLOGY CO., LTD | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# http://www.apache.org/licenses/LICENSE-2.0. | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions | |
# and limitations under the License. | |
name: QDMA-DEMO-TEST | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'qdma-demo' | |
jobs: | |
QDMA-DEMO-TEST: | |
runs-on: ubuntu-latest | |
env: | |
DEMO_PATH: /home/runner/cosim_demo | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y cloud-image-utils libfdt1 | |
- name: Use Cache of Xilinx QEMU | |
id: cache-qemu | |
uses: actions/cache@v3 | |
env: | |
cache-name: xilinx-qemu | |
with: | |
path: ${{ env.DEMO_PATH }}/xilinx-qemu | |
key: xilinx-qemu-${{ hashFiles('**/xilinx-qemu/**') }} | |
- name: Build and Run QDMA Demo | |
run: | | |
./scripts/run_qdma_model_in_host.sh | |
- name: Run QEMU | |
run: | | |
export XILINX_QEMU_BUILD_CACHE=${{ steps.cache-qemu.outputs.cache-hit }} | |
./scripts/run_qemu_in_host.sh | |
- name: Debugging with ssh | |
if: ${{ failure() }} | |
uses: lhotari/action-upterm@v1 |