Skip to content

add powertab

add powertab #981

Workflow file for this run

name: Build and populate cache
on:
pull_request:
push:
branches:
- main
- master
schedule:
- cron: 15 5 * * *
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Free disk space
uses: jlumbroso/[email protected]
with:
tool-cache: true
# https://github.com/jlumbroso/free-disk-space/issues/4
large-packages: false
- name: Checkout repository
uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
keep-derivations = false
log-lines = 50
- name: Show nixpkgs version
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
- name: Setup cachix
uses: cachix/cachix-action@v12
with:
name: bandithedoge
signingKey: ${{ secrets.CACHIX_SIGNING_KEY }}
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
extraPullNames: berberman
- name: Update sources
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
nix flake update
echo -e '[keys]\ngithub = "${{ secrets.GITHUB_TOKEN }}"' > keyfile.toml
chmod +x fetch
nix develop -c ./fetch
rm keyfile.toml
- name: Format code
run: nix fmt
- name: Check evaluation
run: |
nix-env -f . -qa \* --meta --xml \
--option allow-import-from-derivation true \
--drv-path --show-trace \
-I nixpkgs="$(nix-instantiate --find-file nixpkgs)" \
-I "$PWD"
- name: Build nix packages
run: nix shell -f '<nixpkgs>' nix-build-uncached -c nix-build-uncached -build-flags '--show-trace -vv' ci.nix -A cacheOutputs
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: Update sources
- name: Trigger NUR update
run: curl -XPOST "https://nur-update.herokuapp.com/update?repo=bandithedoge"