Something went wrong. Try again.
Nix flake for OpenAI Codex CLI - native Rust binary, hourly updates, multi-platform caching
Something went wrong. Try again.
1.4 kB · 54 lines
YAML
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455name: Test Pull Request
on: pull_request: paths: - 'package.nix' - 'flake.nix' - 'flake.lock' - '.github/workflows/**'
jobs: test-build: strategy: matrix: os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - name: Checkout repository uses: actions/checkout@v4
- name: Install Nix uses: cachix/install-nix-action@v31 with: nix_path: nixpkgs=channel:nixos-unstable extra_nix_config: | experimental-features = nix-command flakes access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} env: NIX_FIRST_BUILD_UID: 400
- name: Setup Nix cache uses: cachix/cachix-action@v15 with: name: codex-cli authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' skipPush: true
- name: Build package run: | nix build .#codex --print-build-logs - name: Test codex version run: | # Test that codex runs and reports version ./result/bin/codex --version - name: Verify package contents run: | test -f ./result/bin/codex
- name: Run basic functionality test run: | ./result/bin/codex --help || true ./result/bin/codex --version 2>&1 | grep -E "codex|Codex"