-
Notifications
You must be signed in to change notification settings - Fork 109
48 lines (36 loc) · 1.2 KB
/
test-rapidwright-wrapper.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
name: Test RapidWright Wrapper
on:
push:
pull_request:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
- name: Setup JDK 1.11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
cache: 'gradle'
- name: Compile
run: ./gradlew compileJava
- name: Test RapidWright Wrapper
run: bin/rapidwright
- name: List RapidWright Apps
run: bin/rapidwright --list-apps
- name: Check Class Main Execution
run: bin/rapidwright com.xilinx.rapidwright.rwroute.RWRoute
- name: Check Jython Command Execution
run: bin/rapidwright Jython -c "print(Device.AWS_F1)"
- name: Check PWD
run: |
mkdir -p sub/dir/ectory
cd sub/dir/ectory
${{ github.workspace }}/bin/rapidwright Jython -c "import sys, os; sys.exit(0 if os.getcwd() == sys.argv[1] else 1)" $(pwd)
- name: Terminate Gradle to allow caching
run: ./gradlew --stop