mirror of
https://github.com/juspay/services-flake.git
synced 2024-09-11 12:26:04 +03:00
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
name: "CI"
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
jobs:
|
|
checks:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, macos-14]
|
|
steps:
|
|
- name: Free up space
|
|
if: matrix.os == 'ubuntu-latest'
|
|
run: |
|
|
sudo rm -rf "/usr/local/share/boost"
|
|
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v25
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
extra_nix_config: |
|
|
trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
|
|
substituters = https://cache.garnix.io?priority=41 https://cache.nixos.org/
|
|
- uses: cachix/cachix-action@v14
|
|
with:
|
|
name: services-flake
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
- uses: yaxitech/nix-install-pkgs-action@v3
|
|
with:
|
|
packages: "github:srid/nixci"
|
|
- run: nixci build
|