forked from google-coral/coralnpu
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (42 loc) · 1.33 KB
/
Copy pathmain.yml
File metadata and controls
43 lines (42 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CoralNPU RTL Build
on:
workflow_dispatch:
pull_request:
push:
tags:
- "*"
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
permissions:
contents: write
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 1
ssh-key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
- uses: bazel-contrib/setup-bazel@0.15.0
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}
# Share repository cache between workflows.
repository-cache: true
- name: build
run: bazel build //hdl/chisel/src/coralnpu:rvv_core_mini_axi_cc_library_emit_verilog
- uses: actions/upload-artifact@v4
with:
name: RvvCoreMiniAxi
path: |
${{ github.workspace }}/bazel-bin/hdl/chisel/src/coralnpu/RvvCoreMiniAxi.sv
${{ github.workspace }}/bazel-bin/hdl/chisel/src/coralnpu/RvvCoreMiniAxi.zip
- uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
files: |
${{ github.workspace }}/bazel-bin/hdl/chisel/src/coralnpu/RvvCoreMiniAxi.sv
${{ github.workspace }}/bazel-bin/hdl/chisel/src/coralnpu/RvvCoreMiniAxi.zip