]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Merge pull request #252 from fourchettes/unified_packaging_process
authorb3nj5m1n <47924309+b3nj5m1n@users.noreply.github.com>
Sun, 23 Apr 2023 16:18:41 +0000 (18:18 +0200)
committerGitHub <noreply@github.com>
Sun, 23 Apr 2023 16:18:41 +0000 (18:18 +0200)
17 files changed:
.github/workflows/nix.yml [new file with mode: 0644]
haskell/build/.gitignore [moved from build/.gitignore with 100% similarity]
haskell/build/Dockerfile [moved from build/Dockerfile with 89% similarity]
haskell/build/build.sh [moved from build/build.sh with 100% similarity]
haskell/lib/AddProgram.hs [moved from lib/AddProgram.hs with 100% similarity]
haskell/lib/Checks.hs [moved from lib/Checks.hs with 100% similarity]
haskell/lib/EditProgram.hs [moved from lib/EditProgram.hs with 100% similarity]
haskell/lib/Output.hs [moved from lib/Output.hs with 100% similarity]
haskell/lib/PreviewProgram.hs [moved from lib/PreviewProgram.hs with 100% similarity]
haskell/lib/Program.hs [moved from lib/Program.hs with 100% similarity]
haskell/lib/Prompts.hs [moved from lib/Prompts.hs with 100% similarity]
haskell/src/add-program.hs [moved from src/add-program.hs with 100% similarity]
haskell/src/xdgnj.hs [moved from src/xdgnj.hs with 100% similarity]
haskell/stack.yaml [moved from stack.yaml with 100% similarity]
haskell/stack.yaml.lock [moved from stack.yaml.lock with 100% similarity]
haskell/xdg-ninja.cabal [moved from xdg-ninja.cabal with 100% similarity]
programs/paradox-games.json [moved from paradox-games.json with 100% similarity]

diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml
new file mode 100644 (file)
index 0000000..3645fe2
--- /dev/null
@@ -0,0 +1,11 @@
+name: "Nix Flake Check"
+on:
+  pull_request:
+  push:
+jobs:
+  tests:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v3
+    - uses: cachix/install-nix-action@v19
+    - run: nix flake check
similarity index 100%
rename from build/.gitignore
rename to haskell/build/.gitignore
similarity index 89%
rename from build/Dockerfile
rename to haskell/build/Dockerfile
index f93b7376b08b761bc7ee5f05fca18a80e136dcd5..f047facd2ec468d13e72e1fecba02d470c118e54 100644 (file)
@@ -6,5 +6,5 @@ RUN cp crtbeginT.o crtbeginT.o.orig
 RUN cp crtbeginS.o crtbeginT.o
 
 RUN git clone "https://github.com/b3nj5m1n/xdg-ninja" /tmp/xdg-ninja
-WORKDIR /tmp/xdg-ninja
+WORKDIR /tmp/xdg-ninja/haskell
 RUN stack install --ghc-options '-optl-static -fPIC'
similarity index 100%
rename from build/build.sh
rename to haskell/build/build.sh
similarity index 100%
rename from lib/AddProgram.hs
rename to haskell/lib/AddProgram.hs
similarity index 100%
rename from lib/Checks.hs
rename to haskell/lib/Checks.hs
similarity index 100%
rename from lib/Output.hs
rename to haskell/lib/Output.hs
similarity index 100%
rename from lib/Program.hs
rename to haskell/lib/Program.hs
similarity index 100%
rename from lib/Prompts.hs
rename to haskell/lib/Prompts.hs
similarity index 100%
rename from src/xdgnj.hs
rename to haskell/src/xdgnj.hs
similarity index 100%
rename from stack.yaml
rename to haskell/stack.yaml
similarity index 100%
rename from stack.yaml.lock
rename to haskell/stack.yaml.lock
similarity index 100%
rename from xdg-ninja.cabal
rename to haskell/xdg-ninja.cabal