Skip to content

Commit

Permalink
chore(ci): split to separate workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
truelecter committed Sep 5, 2023
1 parent cd3a100 commit cc5eb62
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 52 deletions.
31 changes: 31 additions & 0 deletions .github/base-workflows/build-x86-host.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build x86 host
on:
workflow_call:
inputs:
configuration:
required: true
type: string
secrets:
GITHUB_TOKEN:
required: true
CACHIX_AUTH_TOKEN:
required: true
jobs:
build_system:
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"
11 changes: 11 additions & 0 deletions .github/workflows/build-depsos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Build depsos
on:
push:
workflow_dispatch:

jobs:
call-workflow-passing-data:
uses: ./.github/base-workflows/build-x86-host.yaml
with:
configuration: nixos-depsos
secrets: inherit
11 changes: 11 additions & 0 deletions .github/workflows/build-hyperos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Build hyperos
on:
push:
workflow_dispatch:

jobs:
call-workflow-passing-data:
uses: ./.github/base-workflows/build-x86-host.yaml
with:
configuration: nixos-hyperos
secrets: inherit
11 changes: 11 additions & 0 deletions .github/workflows/build-nas.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Build nas
on:
push:
workflow_dispatch:

jobs:
call-workflow-passing-data:
uses: ./.github/base-workflows/build-x86-host.yaml
with:
configuration: nixos-nas
secrets: inherit
11 changes: 11 additions & 0 deletions .github/workflows/build-tl-wsl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Build tl-wsl
on:
push:
workflow_dispatch:

jobs:
call-workflow-passing-data:
uses: ./.github/base-workflows/build-x86-host.yaml
with:
configuration: wsl-tl-wsl
secrets: inherit
25 changes: 25 additions & 0 deletions .github/workflows/build-x86-devshell.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build tl-wsl
on:
push:
workflow_dispatch:

jobs:
build_shell:
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 shell
run: |
nix develop --command "menu"
52 changes: 0 additions & 52 deletions .github/workflows/build-x86.yaml

This file was deleted.

0 comments on commit cc5eb62

Please sign in to comment.