Skip to content

fix(ci): fix workflow paths #1

fix(ci): fix workflow paths

fix(ci): fix workflow paths #1

name: Build x86 host
on:
workflow_call:
inputs:
configuration:
required: true
type: string
secrets:
GITHUB_TOKEN:

Check failure on line 9 in .github/workflows/build-x86-host.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-x86-host.yaml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: true
CACHIX_AUTH_TOKEN:
required: true
jobs:
build_system:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-23.05
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: truelecter
extraPullNames: cuda-maintainers, mic92, nix-community, nrdxp
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Build system configuration
run: |
nix build ".#nixosConfigurations.${{ inputs.configuration }}.config.system.build.toplevel"