4
Some checks failed
Test and Build / test (push) Failing after 26s

This commit is contained in:
James Eversole 2025-01-21 12:39:50 -06:00
parent 66f196360f
commit 237f0d5241

View File

@ -13,9 +13,9 @@ on:
jobs: jobs:
test: test:
container: container:
image: debian:bookworm-slim image: debian:bullseye-slim
steps: steps:
- name: Install prereqs - name: Install prerequisites
run: | run: |
apt-get update && apt-get install -y \ apt-get update && apt-get install -y \
curl \ curl \
@ -24,43 +24,15 @@ jobs:
gnupg \ gnupg \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
- name: Install Nix - name: Install Nix with nix install
run: | run: |
curl -L https://nixos.org/nix/install | sh curl -L https://nixos.org/releases/nix/nix-2.15.0/install | sh
. /root/.nix-profile/etc/profile.d/nix.sh . /etc/profile.d/nix.sh
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Enter development shell and run tests - name: Enter development shell and run tests
run: | run: |
. /root/.nix-profile/etc/profile.d/nix.sh . /etc/profile.d/nix.sh
nix develop --command cabal test 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