Skip to content

Commit

Permalink
Temp
Browse files Browse the repository at this point in the history
  • Loading branch information
gvatsal60 committed Nov 20, 2024
1 parent 8f6ee42 commit 0c7a480
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # Grant write permissions to modify repository contents
steps:
- uses: actions/checkout@v4
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion Makefiles/debug.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ build_img:

# Code Build
build: build_img
@$(DOCKER_RUN_CMD) $(BUILD_CMD)
$(DOCKER_RUN_CMD) $(BUILD_CMD)

# Test code
test: build_img
Expand Down
4 changes: 3 additions & 1 deletion Makefiles/docker.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ DOCKER_UID ?= $(shell id -u)
# GID (Group ID) for the Docker container. Defaults to current user's GID.
DOCKER_GID ?= $(shell id -g)

DOCKER_USER_ENV ?= USER=$(shell whoami)

# Arguments to pass to the Docker command for setting user and mounting volumes.
DOCKER_USER_ARG ?= --user $(DOCKER_UID):$(DOCKER_GID)
DOCKER_USER_ARG ?= --user $(DOCKER_UID):$(DOCKER_GID) --env $(DOCKER_USER_ENV)

# Name of the Docker image based on the repository root directory name.
DOCKER_BASE_IMG_NAME := $(PROJECT_NAME)
Expand Down
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ RUN apt-get update \
gdb \
git \
valgrind \
vim \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit 0c7a480

Please sign in to comment.