-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate CI config with
nixago
(#119)
- Loading branch information
Showing
8 changed files
with
390 additions
and
214 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: {} |
Oops, something went wrong.