ci: add runner environment debug step #11
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [master, ci-artifacts] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build: | |
| runs-on: ntnu-runners | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Debug runner environment | |
| run: | | |
| echo "=== OS Info ===" | |
| cat /etc/os-release || uname -a | |
| echo "" | |
| echo "=== Available package managers ===" | |
| which apt-get || true | |
| which yum || true | |
| which pacman || true | |
| which nix || true | |
| which nix-env || true | |
| echo "" | |
| echo "=== Common tools ===" | |
| which python3 || true | |
| which python || true | |
| which gcc || true | |
| which clang || true | |
| which make || true | |
| which cmake || true | |
| which xz || true | |
| which unxz || true | |
| which tar || true | |
| which curl || true | |
| which wget || true | |
| which git || true | |
| echo "" | |
| echo "=== Python lzma support ===" | |
| python3 -c "import lzma; print('lzma available')" 2>/dev/null || echo "lzma NOT available" | |
| echo "" | |
| echo "=== User ===" | |
| whoami | |
| id | |
| echo "HOME: $HOME" | |
| echo "" | |
| echo "=== sudo check ===" | |
| sudo -n whoami 2>/dev/null || echo "no passwordless sudo" | |
| echo "" | |
| echo "=== CPU ===" | |
| nproc | |
| cat /proc/cpuinfo | grep "model name" | head -1 | |
| echo "" | |
| echo "=== Disk space ===" | |
| df -h | |
| echo "" | |
| echo "=== Installed packages (if dpkg) ===" | |
| dpkg -l | grep -E "xz|python|gcc|build-essential" 2>/dev/null || true | |
| - uses: cachix/install-nix-action@v31 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable | |
| - run: nix-shell -p zig_0_16 --run "cd crdt-lib && zig build" | |
| - run: nix-shell -p zig_0_16 --run "cd crdt-lib && zig build test" | |
| - run: nix-shell -p zig_0_16 --run "cd crdt-server && zig build" | |
| - run: nix-shell -p zig_0_16 --run "cd crdt-server && zig build test" | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: crdt-server | |
| path: | | |
| crdt-server/zig-out/bin/crdt-server* | |
| if-no-files-found: error |