Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ windows/*.sh text eol=lf
# /bin/bash^M: bad interpreter: No such file or directory
# Pin them to LF in the working tree so that can never happen.
Ubuntu/*.sh text eol=lf
openroad/*.sh text eol=lf

# Same again, for the same reason: install-nghdl.sh feeds these to `patch`
# against an LF source tree. A CRLF checkout on a contributor's Windows box,
Expand Down
158 changes: 158 additions & 0 deletions .github/workflows/openroad-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
name: OpenROAD Container & Overlay Packages

on:
workflow_dispatch:
inputs:
create_release:
description: "Publish GitHub Release with cross-platform installers"
required: true
default: "true"
type: choice
options:
- "true"
- "false"

push:
branches:
- master
paths:
- "openroad/**"
- "src/maker/openroad_bridge.py"
- "src/maker/OpenROADViewerDialog.py"
- "src/maker/netlist_converter/**"
- ".github/workflows/openroad-release.yml"
tags:
- "openroad-v*"

pull_request:
paths:
- "openroad/**"
- "src/maker/openroad_bridge.py"
- "src/maker/OpenROADViewerDialog.py"
- "src/maker/netlist_converter/**"
- ".github/workflows/openroad-release.yml"

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/esim-openroad-flow

jobs:
verify:
name: Verify OpenROAD Integration & Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install test runner
run: pip install pytest

- name: Run dialog hygiene and OpenROAD unit tests
run: |
pytest \
src/configuration/tests/test_dialog_hygiene.py \
src/maker/tests/test_openroad_netlist_elaboration.py \
src/maker/tests/test_openroad_macro_harvesting.py \
-v
- name: Validate shell installer syntax
run: bash -n openroad/install.sh openroad/install_macos.sh openroad/setup.sh

- name: Build cross-platform overlay installers (Windows/Linux/macOS)
run: |
python openroad/build_distribution.py --output-dir dist
ls -lh dist/
cat dist/SHA256SUMS
- uses: actions/upload-artifact@v4
with:
name: openroad-overlay-packages
path: dist/

docker:
name: Publish OpenROAD Docker Image (GHCR)
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4

- name: Free runner disk space for ORFS base image
run: |
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/lib/android /usr/local/share/boost
df -h
- uses: docker/setup-buildx-action@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=v2.6,enable=${{ github.ref == 'refs/heads/master' || github.event_name == 'workflow_dispatch' }}
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' || github.event_name == 'workflow_dispatch' }}
type=ref,event=tag
- name: Build and push OpenROAD Flow image
uses: docker/build-push-action@v5
with:
context: ./openroad
file: ./openroad/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

release:
name: Publish OpenROAD Release Packages
needs: [verify, docker]
runs-on: ubuntu-latest
if: >
startsWith(github.ref, 'refs/tags/openroad-v') ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.create_release == 'true')
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: openroad-overlay-packages
path: artifacts

- name: Determine release tag
id: ver
run: |
if [[ "${{ github.ref }}" == refs/tags/openroad-v* ]]; then
echo "tag=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
else
echo "tag=openroad-v2.6.0-$(date +'%Y%m%d')" >> "$GITHUB_OUTPUT"
fi
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.ver.outputs.tag }}
name: eSim-OpenROAD Integration (${{ steps.ver.outputs.tag }})
body: |
## eSim 2.6 + OpenROAD RTL-to-GDSII Integration
- **Official Docker Image:** `ghcr.io/${{ github.repository_owner }}/esim-openroad-flow:v2.6`
- **Windows Installer Archive:** `eSim_OpenROAD_Integration-2.6.0.zip` (extract & run `install.bat`)
- **Linux / macOS Installer Archive:** `eSim_OpenROAD_Integration-2.6.0.tar.gz` (extract & run `./install.sh` or `./install_macos.sh`)
files: |
artifacts/eSim_OpenROAD_Integration-2.6.0.zip
artifacts/eSim_OpenROAD_Integration-2.6.0.tar.gz
artifacts/SHA256SUMS
Loading
Loading