diff --git a/.gitea/workflows/test-and-build.yml b/.gitea/workflows/test-and-build.yml index 725a529..10bdd07 100644 --- a/.gitea/workflows/test-and-build.yml +++ b/.gitea/workflows/test-and-build.yml @@ -13,9 +13,9 @@ on: jobs: test: container: - image: debian:bookworm-slim + image: debian:bullseye-slim steps: - - name: Install prereqs + - name: Install prerequisites run: | apt-get update && apt-get install -y \ curl \ @@ -24,43 +24,15 @@ jobs: gnupg \ && rm -rf /var/lib/apt/lists/* - - name: Install Nix + - name: Install Nix with nix install run: | - curl -L https://nixos.org/nix/install | sh - . /root/.nix-profile/etc/profile.d/nix.sh + curl -L https://nixos.org/releases/nix/nix-2.15.0/install | sh + . /etc/profile.d/nix.sh - name: Checkout code uses: actions/checkout@v3 - name: Enter development shell and run tests run: | - . /root/.nix-profile/etc/profile.d/nix.sh + . /etc/profile.d/nix.sh nix develop --command cabal test - - build: - container: - image: debian:bookworm-slim - needs: test - steps: - - name: Install prereqs - run: | - apt-get update && apt-get install -y \ - curl \ - sudo \ - xz-utils \ - gnupg \ - && rm -rf /var/lib/apt/lists/* - - - name: Install Nix - run: | - curl -L https://nixos.org/nix/install | sh - . /root/.nix-profile/etc/profile.d/nix.sh - - - name: Checkout code - uses: actions/checkout@v3 - - - name: Build binary - run: | - . /root/.nix-profile/etc/profile.d/nix.sh - nix build - ls -l ./result/bin/tricu