Skip to content

reindexer: use the pure-go resolver #26

reindexer: use the pure-go resolver

reindexer: use the pure-go resolver #26

Workflow file for this run

name: rust
on:
pull_request:
jobs:
test:
name: cargo test
runs-on: buildjet-8vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: install nix
uses: nixbuild/nix-quick-install-action@v28
- name: setup nix cache
uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
backend: buildjet
- name: Load rust cache
uses: astriaorg/buildjet-rust-cache@v2.5.1
- name: run cargo test
run: >-
nix develop --command
just test
check:
name: cargo check
runs-on: buildjet-8vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: install nix
uses: nixbuild/nix-quick-install-action@v28
- name: setup nix cache
uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
backend: buildjet
- name: load rust cache
uses: astriaorg/buildjet-rust-cache@v2.5.1
- name: run cargo check, failing on warnings
run: >-
nix develop --command
just check
fmt:
name: cargo fmt
runs-on: buildjet-8vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: install nix
uses: nixbuild/nix-quick-install-action@v28
- name: setup nix cache
uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
backend: buildjet
- name: load rust cache
uses: astriaorg/buildjet-rust-cache@v2.5.1
- name: run cargo fmt, failing on reformatting
run: >-
nix develop --command
just fmt