From 85f97cdf13c9c96fbf98d26b0980fc2fde8df350 Mon Sep 17 00:00:00 2001 From: ada Date: Mon, 30 Mar 2026 23:19:52 -0500 Subject: [PATCH] fix ci --- .github/workflows/ci.yml | 116 +++++++++++++++++++-------------------- 1 file changed, 58 insertions(+), 58 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81b90f1..132e842 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,73 +1,73 @@ name: Cargo Build & Test on: - push: + push: env: - CARGO_TERM_COLOR: always - RUST_BACKTRACE: 1 - SCCACHE_GHA_ENABLED: true + CARGO_TERM_COLOR: always + RUST_BACKTRACE: 1 + SCCACHE_GHA_ENABLED: true jobs: - build_and_test: - runs-on: ubuntu-24.04 - strategy: - matrix: - target: [x86_64-pc-windows-msvc, x86_64-unknown-linux-gnu] - steps: - - uses: actions/checkout@v4 - with: - submodules: recursive + build_and_test: + runs-on: ubuntu-24.04 + strategy: + matrix: + target: [x86_64-pc-windows-msvc, x86_64-unknown-linux-gnu] + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive - - uses: cachix/install-nix-action@v31 - with: - extra_nix_config: | - extra-experimental-features = nix-command flakes + - uses: cachix/install-nix-action@v31 + with: + extra_nix_config: | + extra-experimental-features = nix-command flakes - - name: Cache Nix store - uses: actions/cache@v4 - with: - path: /tmp/nix-cache - key: nix-${{ matrix.target }}-${{ hashFiles('flake.lock') }} - restore-keys: nix-${{ matrix.target }}- + - name: Cache Nix store + uses: actions/cache@v4 + with: + path: /tmp/nix-cache + key: nix-${{ matrix.target }}-${{ hashFiles('flake.lock') }} + restore-keys: nix-${{ matrix.target }}- - - name: Import Nix cache - run: | - if [ -f /tmp/nix-cache/archive.nar ]; then - nix-store --import < /tmp/nix-cache/archive.nar || true - fi + - name: Import Nix cache + run: | + if [ -f /tmp/nix-cache/archive.nar ]; then + nix-store --import < /tmp/nix-cache/archive.nar || true + fi - - name: Cache Cargo - uses: actions/cache@v4 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ matrix.target }}-ci-${{ hashFiles('**/Cargo.toml') }} + - name: Cache Cargo + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ matrix.target }}-ci-${{ hashFiles('**/Cargo.toml') }} - - name: Run sccache-cache - uses: mozilla-actions/sccache-action@v0.0.9 + - name: Run sccache-cache + uses: mozilla-actions/sccache-action@v0.0.9 - - name: Install dependencies - shell: bash - run: > - sudo apt-get update; - sudo apt-get install -y --no-install-recommends - libasound2-dev - libudev-dev - libwayland-dev - ; + - name: Install dependencies + shell: bash + run: > + sudo apt-get update; + sudo apt-get install -y --no-install-recommends + libasound2-dev + libudev-dev + libwayland-dev + ; - - run: nix develop --command just build - - run: nix develop --command just clippy - - run: nix develop --command just bevy-lint - - run: nix develop --command just test + - run: nix develop --command just build -D + - run: nix develop --command just clippy + - run: nix develop --command just bevy-lint + - run: nix develop --command just test - - name: Export Nix cache - if: always() - run: | - mkdir -p /tmp/nix-cache - nix-store --export $(nix-store -qR $(nix develop --command bash -c 'echo $buildInputs $nativeBuildInputs' 2>/dev/null) 2>/dev/null) > /tmp/nix-cache/archive.nar 2>/dev/null || true + - name: Export Nix cache + if: always() + run: | + mkdir -p /tmp/nix-cache + nix-store --export $(nix-store -qR $(nix develop --command bash -c 'echo $buildInputs $nativeBuildInputs' 2>/dev/null) 2>/dev/null) > /tmp/nix-cache/archive.nar 2>/dev/null || true -- 2.51.2