Skip to content

Commit 96c9815

Browse files
committed
docker: disable test in CI (oom)
1 parent c6c6f7a commit 96c9815

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ENV FAULT_IVERILOG=/iverilog/bin/iverilog
4949
ENV FAULT_IVL_BASE=/iverilog/lib/ivl
5050
ENV PATH="/yosys/bin:/iverilog/bin:${PATH}"
5151

52-
# Sanity Checks
53-
RUN PYTEST_FAULT_BIN=fault pytest -v
52+
# Sanity Checks; OOMs in CI
53+
# RUN PYTEST_FAULT_BIN=fault pytest -v
5454

5555
WORKDIR /

.github/workflows/docker.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,18 @@ jobs:
4141
echo "FAULT_VERSION=$(perl -ne 'print $1 if /let VERSION = "([^"]+)"/' Sources/Fault/Entries/main.swift)" >> $GITHUB_ENV
4242
- name: Set up Docker
4343
uses: docker/setup-docker-action@v4
44-
- run: docker build -t "ghcr.io/aucohl/fault:$FAULT_VERSION-${{ matrix.os.arch }}" ./.github/workflows --build-arg "FAULT_VERSION=$FAULT_VERSION"
4544
- name: Log in to GHCR
4645
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
47-
- run: docker push "ghcr.io/aucohl/fault:$FAULT_VERSION-${{ matrix.os.arch }}"
46+
- name: Build and push
47+
uses: docker/build-push-action@v6
48+
with:
49+
push: true
50+
tags: ghcr.io/aucohl/fault:${{ env.FAULT_VERSION}}-${{ matrix.os.arch }}
51+
cache-from: type=registry,ref=ghcr.io/aucohl/fault:${{ env.FAULT_VERSION}}-${{ matrix.os.arch }}
52+
cache-to: type=inline
53+
build-args:
54+
- FAULT_VERSION=${{ env.FAULT_VERSION }}
55+
context: ./.github/workflows
4856
create_manifest:
4957
name: Create and push multi-arch manifest
5058
needs: build_docker_images

0 commit comments

Comments
 (0)