Skip to content

Commit

Permalink
[#61287] WIP: workflows: Push dependencies image
Browse files Browse the repository at this point in the history
Signed-off-by: Illia Vysochyn <[email protected]>
  • Loading branch information
ivysochyn committed Jun 28, 2024
1 parent e990d6f commit 15278e8
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/github-actions-cron-test-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
os: ["ubuntu20.04", "ubuntu22.04", "centos7"]
runs-on: ubuntu-latest
env:
IMAGE: ghcr.io/antmicro/openroad-flow-scripts
IMAGE: ghcr.io/antmicro/openroad-flow-scripts-test-cache
IMAGE_DEPS: ghcr.io/antmicro/openroad-flow-scripts-test-cache-deps
steps:
- name: Check out repository code
uses: actions/checkout@v3
Expand All @@ -53,16 +54,17 @@ jobs:
./etc/DockerHelper.sh create -target=builder -os=${{ matrix.os }}
- name: Test build
run: |
cmd="source ./env.sh ; yosys -help ; openroad -help ; make -C flow ;"
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}"
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}"
- name: Tag the image
run: |
docker tag openroad/flow-${{ matrix.os }}-builder ${{ env.IMAGE }}/${{ matrix.os }}
docker tag openroad/flow-${{ matrix.os }}-dev ${{ env.IMAGE_DEPS }}/${{ matrix.os }}
- name: Login to GitHub Container Registry (GHCR)
if: github.event_name != 'pull_request' && github.repository == 'antmicro/OpenROAD-flow-scripts'
uses: docker/login-action@v2
Expand All @@ -73,4 +75,6 @@ jobs:

- name: Push container image to GitHub Container Registry (GHCR)
if: github.event_name != 'pull_request' && github.repository == 'antmicro/OpenROAD-flow-scripts'
run: docker push ${{ env.IMAGE }}/${{ matrix.os }}
run: |
docker push ${{ env.IMAGE }}/${{ matrix.os }}
docker push ${{ env.IMAGE_DEPS }}/${{ matrix.os }}

0 comments on commit 15278e8

Please sign in to comment.