Repository navigation
Expand file tree
/
Copy pathgithub-actions-cron-test-installer.yml
More file actions
57 lines (55 loc) · 2.01 KB
/
Copy pathgithub-actions-cron-test-installer.yml
File metadata and controls
57 lines (55 loc) · 2.01 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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:
permissions:
contents: read
jobs:
testInstaller:
strategy:
fail-fast: false
matrix:
os: ["ubuntu26.04", "ubuntu24.04"]
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted-ubuntu-26.04' || 'ubuntu-26.04' }}
env:
INSTALLER_TAG: installer-${{ github.run_id }}-${{ github.run_attempt }}
INSTALLER_CONTAINER: installer-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.os }}
steps:
- name: Check out repository code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
submodules: recursive
- name: Run installer
run: |
./etc/DockerHelper.sh create -target=dev -os=${{ matrix.os }} -tag="$INSTALLER_TAG"
- name: Build project
run: |
./etc/DockerHelper.sh create -target=builder -os=${{ matrix.os }} -tag="$INSTALLER_TAG"
- name: Test build
run: |
cmd="source ./env.sh ; yosys -help ; openroad -help ; make -C flow ;"
docker run --rm --name "$INSTALLER_CONTAINER" "openroad/flow-${{ matrix.os }}-builder:$INSTALLER_TAG" /bin/bash -c "${cmd}"
- name: Clean up this installer run
if: always()
run: |
docker rm -f "$INSTALLER_CONTAINER" || true
docker image rm "openroad/flow-${{ matrix.os }}-builder:$INSTALLER_TAG" "openroad/flow-${{ matrix.os }}-dev:$INSTALLER_TAG" || true