fix: Secure the keyring using a local file backend (isolated) #14
This file contains 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: "Build" | |
on: | |
pull_request: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
# - name: "Cache Nix store" | |
# uses: actions/cache@v3.3.1 | |
# id: nix-cache | |
# with: | |
# path: /tmp/nixcache | |
# key: "${{ runner.os }}-${{ hashFiles('Cargo.toml') }}" | |
- name: "Install Nix" | |
uses: cachix/install-nix-action@v22 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
# - name: "Import Nix store cache" | |
# if: "steps.nix-cache.outputs.cache-hit == 'true'" | |
# run: "nix-store --import < /tmp/nixcache" | |
- name: "Build app" | |
run: nix build | |
# - name: "Export Nix store cache" | |
# if: "steps.nix-cache.outputs.cache-hit != 'true'" | |
# run: "nix-store --export $(find /nix/store -maxdepth 1 -name '*-*') > /tmp/nixcache" | |
# - run: nix flake check |