Cachix (latest tag) #14
This file contains hidden or 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: Cachix (latest tag) | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| push: | |
| tags: [ "*" ] | |
| permissions: {} | |
| jobs: | |
| build_nixpkgs_stable: | |
| name: Build and push to Cachix (nixpkgs 25.11) | |
| runs-on: ubuntu-latest | |
| environment: cachix | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| submodules: 'recursive' | |
| - name: Check out latest tag | |
| run: git checkout "$(git describe --tags "$(git rev-list --tags --max-count=1)")" | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@19effe9fe722874e6d46dd7182e4b8b7a43c4a99 # v31.10.0 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-25.11 | |
| - uses: cachix/cachix-action@3ba601ff5bbb07c7220846facfa2cd81eeee15a1 # v16 | |
| with: | |
| name: inputactions | |
| authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
| - name: Patch flake.nix | |
| run: sed -i -e 's/nixos-unstable/nixos-25.11/g' flake.nix | |
| - name: Update flake.lock | |
| run: nix flake update | |
| - name: Build | |
| run: nix build -L .?submodules=1#inputactions-ctl | |
| build_nixpkgs_unstable: | |
| name: Build and push to Cachix (nixpkgs unstable) | |
| runs-on: ubuntu-latest | |
| environment: cachix | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| submodules: 'recursive' | |
| - name: Check out latest tag | |
| run: git checkout "$(git describe --tags "$(git rev-list --tags --max-count=1)")" | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@19effe9fe722874e6d46dd7182e4b8b7a43c4a99 # v31.10.0 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable | |
| - uses: cachix/cachix-action@3ba601ff5bbb07c7220846facfa2cd81eeee15a1 # v16 | |
| with: | |
| name: inputactions | |
| authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
| - name: Update flake.lock | |
| run: nix flake update | |
| - name: Build | |
| run: nix build -L .?submodules=1#inputactions-ctl | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true |