-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michal Czyz <[email protected]>
- Loading branch information
1 parent
824bbd5
commit 5de9afc
Showing
6 changed files
with
74 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,20 +20,6 @@ jobs: | |
with: | ||
ref: "mczyz/dev" | ||
|
||
# - name: Pre-build dev container image | ||
# uses: devcontainers/[email protected] | ||
# with: | ||
# imageName: ghcr.io/openroad-codespace/test | ||
# cacheFrom: ghcr.io/openroad-codespace/test | ||
# push: always | ||
# configFile: ./.devcontainer/ubuntu-gui/devcontainer.json | ||
|
||
- name: Devcontainer build | ||
run: | | ||
npm install -g @devcontainers/cli | ||
devcontainer build --config .devcontainer/ubuntu-gui/devcontainer.json --workspace-folder . --push false --image-name test:latest | ||
docker image tag test:latest ghcr.io/antmicro/openroad-codespace:test | ||
- name: Login to GitHub Container Registry (GHCR) | ||
if: github.event_name != 'pull_request' && github.repository == 'antmicro/openroad-codespace' | ||
uses: docker/login-action@v2 | ||
|
@@ -42,6 +28,28 @@ jobs: | |
username: gha | ||
password: ${{ github.token }} | ||
|
||
- name: Docker build | ||
run: | | ||
docker build -t ghcr.io/antmicro/orfs:latest -f Dockerfile-orfs | ||
- name: Push container image to GitHub Container Registry (GHCR) | ||
if: github.event_name != 'pull_request' && github.repository == 'antmicro/openroad-codespace' | ||
run: docker push ghcr.io/antmicro/orfs:latest | ||
|
||
- name: Devcontainer build | ||
run: | | ||
npm install -g @devcontainers/cli | ||
devcontainer build --config .devcontainer/ubuntu-gui/devcontainer.json --workspace-folder . --push false --image-name ghcr.io/antmicro/openroad-codespace:latest | ||
# docker image tag test:latest ghcr.io/antmicro/openroad-codespace:test | ||
- name: Push container image to GitHub Container Registry (GHCR) | ||
if: github.event_name != 'pull_request' && github.repository == 'antmicro/openroad-codespace' | ||
run: docker push ghcr.io/antmicro/openroad-codespace:latest | ||
|
||
- name: Docker build | ||
run: | | ||
docker build -t ghcr.io/antmicro/lxqt -f Dockerfile-lxqt | ||
- name: Push container image to GitHub Container Registry (GHCR) | ||
if: github.event_name != 'pull_request' && github.repository == 'antmicro/openroad-codespace' | ||
run: docker push ghcr.io/antmicro/openroad-codespace:test | ||
run: docker push ghcr.io/antmicro/lxqt:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM ghcr.io/antmicro/openroad-codespace:latest | ||
|
||
COPY scripts/install-lqxt.sh /usr/local/bin/install-lqxt.sh | ||
RUN bash /usr/local/bin/install-lqxt.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM ubuntu:22.04 | ||
|
||
COPY scripts/install.sh /usr/local/bin/install.sh | ||
RUN bash /usr/local/bin/install.sh | ||
|
||
ENV PATH="$PATH:/opt/oss-cad-suite/bin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. ../common.sh | ||
|
||
# Create session config file | ||
sudoIf apt-get -y --no-install-recommends install lxqt | ||
|
||
cat << EOF > ~/.config/lxqt/session.conf | ||
[General] | ||
__userfile__=true | ||
window_manager=xfwm4 | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
export KLAYOUT_VER=${KLAYOUT_VER:-0.28.17-1} | ||
export DEBIAN_FRONTEND=noninteractive | ||
|
||
apt-get -qqy update | ||
apt-get install -qqy --no-install-recommends git wget ca-certificates | ||
|
||
update-ca-certificates | ||
wget https://www.klayout.org/downloads/Ubuntu-22/klayout_${KLAYOUT_VER}_amd64.deb | ||
apt-get install -qqy --no-install-recommends ./klayout_${KLAYOUT_VER}_amd64.deb | ||
rm -rf ./klayout_${KLAYOUT_VER}_amd64.deb | ||
|
||
wget https://github.com/YosysHQ/oss-cad-suite-build/releases/download/2024-03-26/oss-cad-suite-linux-x64-20240326.tgz | ||
tar -xvf oss-cad-suite-linux-x64-20240326.tgz | ||
rm -rf oss-cad-suite-linux-x64-20240326.tgz | ||
mkdir -p /opt | ||
mv oss-cad-suite /opt/oss-cad-suite | ||
|
||
wget https://github.com/Precision-Innovations/OpenROAD/releases/download/2024-03-25/openroad_2.0_amd64-ubuntu22.04-2024-03-25.deb | ||
apt-get install -qqy --no-install-recommends ./openroad_2.0_amd64-ubuntu22.04-2024-03-25.deb | ||
rm -rf ./openroad_2.0_amd64-ubuntu22.04-2024-03-25.deb | ||
|
||
cd ~ | ||
git clone https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts.git | ||
|
||
apt-get clean | ||
apt-get autoclean |