forked from The-OpenROAD-Project/OpenROAD-flow-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (59 loc) · 1.87 KB
/
github-actions-cron-test-installer.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
name: Test DependencyInstaller script
on:
schedule:
- cron: "0 8 * * SUN"
push:
paths:
- 'etc/DependencyInstaller.sh'
- 'etc/DockerHelper.sh'
- '.github/workflows/github-actions-cron-test-installer.yml'
- 'build_openroad.sh'
- 'env.sh'
- 'flow/Makefile'
pull_request:
paths:
- 'etc/DependencyInstaller.sh'
- 'etc/DockerHelper.sh'
- '.github/workflows/github-actions-cron-test-installer.yml'
- 'build_openroad.sh'
- 'env.sh'
- 'flow/Makefile'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
testInstaller:
strategy:
fail-fast: false
matrix:
os: ["ubuntu20.04", "ubuntu22.04", "centos7"]
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: recursive
- name: Network Setup
run: |
sudo apt-get update
sudo apt-get install -y bridge-utils
sudo pkill docker
sudo iptables -t nat -F
sudo ifconfig docker0 down
sudo brctl delbr docker0
sudo service docker restart
- name: Run installer
run: |
./etc/DockerHelper.sh create -target=dev -os=${{ matrix.os }}
- name: Build project
run: |
./etc/DockerHelper.sh create -target=builder -os=${{ matrix.os }}
- name: Test build
run: |
cmd="source ./env.sh ; yosys -help ; openroad -help ; make -C flow ;"
if [[ ${{ matrix.os }} == "centos7" ]]; then
cmd="source /opt/rh/devtoolset-8/enable; ${cmd}"
cmd="source /opt/rh/llvm-toolset-7.0/enable; ${cmd}"
cmd="source /opt/rh/rh-python38/enable; ${cmd}"
fi
docker run openroad/flow-${{ matrix.os }}-builder /bin/bash -c "${cmd}"