name: build and cache random stuff on: workflow_dispatch: push: jobs: build: strategy: matrix: package: - github:cything/nixpkgs/d89cb92a38516c06964fbd814767c9936edaeb4d#lact os: - ubuntu-latest - macos-latest runs-on: ${{ matrix.os }} continue-on-error: true steps: - uses: DeterminateSystems/nix-installer-action@main with: logger: pretty # use sccache for Rust - name: Run sccache-cache if: (env.SCCACHE_GHA_ENABLED == 'true') uses: mozilla-actions/sccache-action@main # use rust-cache - uses: Swatinem/rust-cache@v2 with: cache-all-crates: "true" cache-on-failure: "true" cache-targets: "true" - uses: DeterminateSystems/magic-nix-cache-action@main - name: Setup Attic cache uses: ryanccn/attic-action@v0 with: endpoint: ${{ vars.ATTIC_ENDPOINT }} cache: ${{ vars.ATTIC_CACHE }} token: ${{ secrets.ATTIC_TOKEN }} - run: nix build -L '${{ matrix.package }}'