forked from PostgREST/postgrest
-
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.
ci: Add workflow to seed cachix (PostgREST#2615)
Fixes PostgREST#2609.
- Loading branch information
1 parent
3f14312
commit e27d7c3
Showing
5 changed files
with
91 additions
and
20 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Cachix | ||
|
||
# This workflow serves to | ||
# - keep cachix up to date with the main branch | ||
# - incrementally update cachix for large dependency | ||
# updates, e.g. after running postgrest-nixpkgs-upgrade, | ||
# which can cause the main CI workflow to time out | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- rel-* | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
Seed-Cachix: | ||
strategy: | ||
matrix: | ||
include: | ||
- os: Linux | ||
runs-on: ubuntu-latest | ||
- os: MacOS | ||
runs-on: macos-latest | ||
name: Seed ${{ matrix.os }} | ||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Nix Environment | ||
uses: ./.github/actions/setup-nix | ||
with: | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
|
||
- name: Install cachix tooling | ||
run: | | ||
nix-env -f default.nix -iA devTools.pushCachix.bin | ||
postgrest-push-cachix | ||
- name: Seed dynamic postgrest build | ||
run: | | ||
nix-build -A postgrestPackage | ||
postgrest-push-cachix | ||
- name: Seed style tools | ||
run: | | ||
nix-build -A style | ||
postgrest-push-cachix | ||
- name: Seed test tools | ||
run: | | ||
nix-build -A tests | ||
postgrest-push-cachix | ||
- name: Seed static toolchain | ||
if: matrix.os == 'Linux' | ||
run: | | ||
nix-build -A packagesStatic.haskellPackages.hello | ||
postgrest-push-cachix | ||
- name: Seed static postgresql build (for libpq) | ||
if: matrix.os == 'Linux' | ||
run: | | ||
nix-build -A packagesStatic.pkgs.postgresql | ||
postgrest-push-cachix | ||
- name: Seed static postgrest build | ||
if: matrix.os == 'Linux' | ||
run: | | ||
nix-build -A postgrestStatic | ||
postgrest-push-cachix | ||
- name: Build and push everything to Cachix | ||
run: | | ||
nix-build | ||
postgrest-push-cachix |
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
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
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
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 |
---|---|---|
|
@@ -304,4 +304,5 @@ buildToolbox | |
hsieGraphModules | ||
hsieGraphSymbols | ||
]; | ||
extra = { inherit pushCachix; }; | ||
} |