Skip to content

Commit

Permalink
Add devcontainer and dependabot configurations (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
koolkdev authored Dec 3, 2024
1 parent 8b41f01 commit d1b888d
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM mcr.microsoft.com/devcontainers/cpp:1-ubuntu-24.04

# Install gcc 14
COPY ./install-gcc.sh /tmp/
RUN chmod +x /tmp/install-gcc.sh && /tmp/install-gcc.sh && rm -f /tmp/install-gcc.sh
7 changes: 7 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "C++",
"build": {
"dockerfile": "Dockerfile"
},
"postCreateCommand": "git submodule init && git submodule update"
}
11 changes: 11 additions & 0 deletions .devcontainer/install-gcc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Install gcc-14
set -e

apt-get update
apt-get -y install software-properties-common
add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ noble main universe"
apt-get update
apt-get -y install gcc-14 g++-14
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 10
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 10
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: weekly
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly

0 comments on commit d1b888d

Please sign in to comment.