Skip to content

Commit

Permalink
Generate CI config with nixago
Browse files Browse the repository at this point in the history
  • Loading branch information
ethnt committed Jan 15, 2024
1 parent d7185f1 commit 42b7e0b
Show file tree
Hide file tree
Showing 8 changed files with 390 additions and 214 deletions.
105 changes: 0 additions & 105 deletions .github/workflows/ci.dhall

This file was deleted.

146 changes: 77 additions & 69 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,85 +3,93 @@ jobs:
name: Build remote home configuration
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: "actions/checkout@v3"
- name: Install Nix
uses: "DeterminateSystems/nix-installer-action@main"
with:
extra-conf: system-features = aarch64-linux
- name: Use Cachix store
uses: "cachix/cachix-action@v12"
with:
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
extraPullNames: "tilde,nix-community,nrdxp"
name: tilde
- name: Add SSH key to ssh-agent
uses: "webfactory/[email protected]"
with:
ssh-private-key: |2
${{ secrets.PRAGMATAPRO_DEPLOY_KEY }}
${{ secrets.SECRETS_DEPLOY_KEY}}
- run: |2
nix build -j4 --option system ${{ matrix.system }} --extra-platforms ${{ matrix.system }} .#homeConfigurationsPortable.${{ matrix.system }}.remote.activation-script --accept-flake-config --print-build-logs --show-trace --verbose
strategy:
matrix:
system:
- x86_64-linux
- name: Checkout code
uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: system-features = aarch64-linux
- name: Add SSH keys to ssh-agent
uses: webfactory/[email protected]
with:
ssh-private-key: '${{ secrets.PRAGMATAPRO_DEPLOY_KEY }}
${{ secrets.SECRETS_DEPLOY_KEY }}
'
- name: Use Cachix store
uses: cachix/cachix-action@v12
with:
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
extraPullNames: tilde,nix-community,nrdxp
name: tilde
- run: 'nix build -j4 --option system x86_64-linux --extra-platforms x86_64-linux
.#homeConfigurationsPortable.x86_64-linux.remote.activation-script --accept-flake-config
--print-build-logs --show-trace --verbose
'
buildSystem:
name: Build system
runs-on: "${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: "actions/checkout@v3"
- name: Install Nix
uses: "DeterminateSystems/nix-installer-action@main"
with:
extra-conf: system-features = aarch64-linux
- name: Use Cachix store
uses: "cachix/cachix-action@v12"
with:
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
extraPullNames: "tilde,nix-community,nrdxp"
name: tilde
- name: Add SSH key to ssh-agent
uses: "webfactory/[email protected]"
with:
ssh-private-key: |2
${{ secrets.PRAGMATAPRO_DEPLOY_KEY }}
${{ secrets.SECRETS_DEPLOY_KEY}}
- run: |2
nix develop --impure --accept-flake-config -c "just" "build-system" "${{ matrix.host }}"
- name: Checkout code
uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: system-features = aarch64-linux
- name: Add SSH keys to ssh-agent
uses: webfactory/[email protected]
with:
ssh-private-key: '${{ secrets.PRAGMATAPRO_DEPLOY_KEY }}
${{ secrets.SECRETS_DEPLOY_KEY }}
'
- name: Use Cachix store
uses: cachix/cachix-action@v12
with:
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
extraPullNames: tilde,nix-community,nrdxp
name: tilde
- run: 'nix develop --impure --accept-flake-config -c "just" "build-system" "${{
matrix.host }}"
'
strategy:
matrix:
host:
- eMac
- st-eturkeltaub2
- eMac
- st-eturkeltaub2
os:
- flyci-macos-large-latest-m1
- flyci-macos-large-latest-m1
check:
name: Check flake
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: "actions/checkout@v3"
- name: Install Nix
uses: "DeterminateSystems/nix-installer-action@main"
with:
extra-conf: system-features = aarch64-linux
- name: Use Cachix store
uses: "cachix/cachix-action@v12"
with:
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
extraPullNames: "tilde,nix-community,nrdxp"
name: tilde
- name: Add SSH key to ssh-agent
uses: "webfactory/[email protected]"
with:
ssh-private-key: |2
${{ secrets.PRAGMATAPRO_DEPLOY_KEY }}
${{ secrets.SECRETS_DEPLOY_KEY}}
- run: |2
nix flake -Lv check --impure --all-systems --show-trace
- name: Checkout code
uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: system-features = aarch64-linux
- name: Add SSH keys to ssh-agent
uses: webfactory/[email protected]
with:
ssh-private-key: '${{ secrets.PRAGMATAPRO_DEPLOY_KEY }}
${{ secrets.SECRETS_DEPLOY_KEY }}
'
- name: Use Cachix store
uses: cachix/cachix-action@v12
with:
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
extraPullNames: tilde,nix-community,nrdxp
name: tilde
- run: 'nix flake -Lv check --impure --all-systems --show-trace
'
name: CI
on:
'on':
push: {}
Loading

0 comments on commit 42b7e0b

Please sign in to comment.