forked from google/xls
-
Notifications
You must be signed in to change notification settings - Fork 0
117 lines (104 loc) · 3.07 KB
/
xls-modules.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
# See also: https://github.com/marketplace/actions/bazel-action
name: XLS Modules
on:
# Avoid triggering on pushes to /all/ open PR branches.
push:
branches:
- ci/dslx-dma-rebase-axi
paths-ignore:
# Do not trigger action when docs are updated.
- 'docs/**'
pull_request:
branches:
- main
# This lets us trigger manually from the UI.
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build:
name: BUILD
# runs-on: ubuntu-22.04
runs-on: ubuntu-22.04
timeout-minutes: 600
steps:
- uses: actions/checkout@v4
with:
ref: 'ci/dslx-dma-rebase-axi'
- name: Free disk
id: free-disk
uses: ./.github/actions/free-disk
- name: Build XLS
id: build
uses: ./.github/actions/build
config-matrix:
needs: build
name: Matrix configuration
runs-on: ubuntu-22.04
timeout-minutes: 60
outputs:
json_config: ${{ env.json_config }}
steps:
- uses: actions/checkout@v4
with:
ref: 'ci/dslx-dma-rebase-axi'
- name: Read json file
id: read-json
run: |
sudo apt install jq
echo "json_config=$(jq -c . .github/workflows/xls-modules.json)" | tee -a "$GITHUB_ENV"
implement:
needs: config-matrix
name: Implementation
runs-on: ubuntu-22.04
timeout-minutes: 600
strategy:
fail-fast: false
matrix: ${{ fromJson( needs.config-matrix.outputs.json_config ) }}
steps:
- uses: actions/checkout@v4
with:
ref: 'ci/dslx-dma-rebase-axi'
- name: Free disk
id: free-disk
uses: ./.github/actions/free-disk
- name: Implement CSR
id: implementation
uses: ./.github/actions/implementation
with:
xls_module: ${{ matrix.module.xls_module }}
rule_ir: ${{ matrix.module.rule_ir }}
rule_verilog: ${{ matrix.module.rule_verilog }}
rule_synthesis: ${{ matrix.module.rule_synthesis }}
rule_pnr: ${{ matrix.module.rule_pnr }}
# test:
# needs: build
# name: Test
# runs-on: ubuntu-22.04
# timeout-minutes: 600
# strategy:
# fail-fast: false
# matrix:
# dslx_test: ["test_common",
# "test_csr",
# "test_axi_csr",
# "test_address_generator",
# "test_frontend_writer",
# "test_frontend_reader",
# "test_main_controller"
# ]
# steps:
# - uses: actions/checkout@v4
# with:
# ref: 'ci/dslx-dma-rebase-axi'
# - name: Free disk
# id: free-disk
# uses: ./.github/actions/free-disk
# - name: Test ${{ matrix.dslx_test }}
# id: test
# uses: ./.github/actions/test
# with:
# xls_module: "xls/modules/dma"
# rule_test: ${{ matrix.dslx_test }}