fix: make deploy a slice, use it to config multiple environments #16
Workflow file for this run
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
--- | |
name: Flake Check & Build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
env: | |
CACHIX_BINARY_CACHE: altf4llc-os | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: cachix/cachix-action@v14 | |
with: | |
authToken: ${{ secrets.ALTF4LLC_CACHIX_AUTH_TOKEN }} | |
name: ${{ env.CACHIX_BINARY_CACHE }} | |
- uses: actions/checkout@v4 | |
- run: nix develop -c just check | |
build: | |
needs: | |
- check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: cachix/cachix-action@v14 | |
with: | |
authToken: ${{ secrets.ALTF4LLC_CACHIX_AUTH_TOKEN }} | |
name: ${{ env.CACHIX_BINARY_CACHE }} | |
- uses: actions/checkout@v4 | |
- run: nix develop -c just build | |