Skip to content

chore: Release sss_code version 0.3.1 #87

chore: Release sss_code version 0.3.1

chore: Release sss_code version 0.3.1 #87

Workflow file for this run

# Builds the workspace's exposed `cli` and `code` packages on main pushes
# and seeds the attic binary cache at cache.sergioribera.rs (`main`). The
# filename is kept as `cachix.yml` for git history continuity; the pipeline
# itself now uses attic — set the `ATTIC_TOKEN` secret with a write-capable
# token issued by `atticadm`.
name: "Check flake & Push built packages to attic cache"
on:
workflow_call:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- web/
- .gitignore
- README.md
- release.toml
env:
PROJECT_NAME: sss
jobs:
check-flake:
name: "Check flake validity"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
logger: pretty
- name: Check Flake
run: nix flake check --accept-flake-config
attic:
name: "Build & Cache Exposed Packages"
runs-on: ubuntu-latest
needs: check-flake
strategy:
matrix:
package:
- cli
- cli-nvidia
- cli-rocm
- cli-noocr
- code
steps:
- uses: easimon/maximize-build-space@v8
with:
overprovision-lvm: true
remove-android: true
remove-dotnet: true
remove-haskell: true
remove-docker-images: true
remove-codeql: true
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
experimental-features = nix-command flakes
accept-flake-config = true
- name: Attic cache
uses: ryanccn/attic-action@v0
with:
endpoint: https://cache.sergioribera.rs
cache: main
token: ${{ secrets.ATTIC_TOKEN }}
- name: Build from the defined matrix
run: nix build .#${{ matrix.package }} --print-build-logs