From 80de94e3e3ab837793002d1a4e9bfcc6c4c27e13 Mon Sep 17 00:00:00 2001 From: hinriksnaer Date: Fri, 8 May 2026 12:46:08 -0400 Subject: [PATCH] added build test and enabled nix --- .devcontainer/Dockerfile | 5 +++++ .github/workflows/pr-build-check.yml | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/pr-build-check.yml diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 5296e5c..9fa06e5 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -49,9 +49,14 @@ RUN dnf upgrade --refresh -y && \ tmux \ tar \ htop \ + nix \ nodejs && \ dnf clean all +# Enable Nix flakes +RUN mkdir -p /root/.config/nix \ + && echo 'experimental-features = nix-command flakes' > /root/.config/nix/nix.conf + RUN dnf config-manager addrepo --from-repofile=https://cli.github.com/packages/rpm/gh-cli.repo && dnf install gh --repo gh-cli -y && dnf clean all RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts diff --git a/.github/workflows/pr-build-check.yml b/.github/workflows/pr-build-check.yml new file mode 100644 index 0000000..160a501 --- /dev/null +++ b/.github/workflows/pr-build-check.yml @@ -0,0 +1,19 @@ +name: PR Build Check + +on: + pull_request: + paths: + - '.devcontainer/Dockerfile' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - name: Build image + uses: docker/build-push-action@v7 + with: + context: . + file: .devcontainer/Dockerfile + push: false