Skip to content

flake.lock: update #2147

flake.lock: update

flake.lock: update #2147

Workflow file for this run

name: 'Update Nix Flake Inputs'
on:
push:
branches:
- '_update-deps/runtimeverification/llvm-backend'
- '_update-deps/runtimeverification/haskell-backend'
workflow_dispatch:
# Stop in progress workflows on the same branch and same workflow to use latest committed code
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
nix-flake-submodule-sync:
name: 'Nix flake submodule sync'
runs-on: ubuntu-24.04
steps:
- name: 'Check out code, set up Git'
uses: actions/checkout@v4
with:
token: ${{ secrets.JENKINS_GITHUB_PAT }}
submodules: recursive
fetch-depth: 0
- run: |
git config --global user.name rv-jenkins
git config --global user.email [email protected]
- name: 'Install Nix'
uses: cachix/install-nix-action@v22
with:
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
substituters = http://cache.nixos.org https://hydra.iohk.io
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
- name: 'Install Cachix'
uses: cachix/cachix-action@v14
with:
name: k-framework
authToken: '${{ secrets.CACHIX_PUBLIC_TOKEN }}'
- name: 'Update Nix flake inputs from submodules/release-tags'
run: |
set -euxo pipefail
changed=false
hs_backend_version=$(cat deps/haskell-backend_release)
cd haskell-backend/src/main/native/haskell-backend
git checkout "${hs_backend_version}"
cd -
sed -i 's! url = "github:runtimeverification/haskell-backend/.*";! url = "github:runtimeverification/haskell-backend/'"${hs_backend_version}"'";!' flake.nix
if git add flake.nix haskell-backend/src/main/native/haskell-backend && git commit -m "flake.nix, haskell-backend/src/main/native/haskell-backend: update to version ${hs_backend_version}"; then
changed=true
fi
llvm_backend_version="v$(cat deps/llvm-backend_release)"
cd llvm-backend/src/main/native/llvm-backend
git checkout "${llvm_backend_version}"
cd -
sed -i 's! llvm-backend.url = "github:runtimeverification/llvm-backend/.*";! llvm-backend.url = "github:runtimeverification/llvm-backend/'"${llvm_backend_version}"'";!' flake.nix
if git add flake.nix llvm-backend/src/main/native/llvm-backend && git commit -m "flake.nix, llvm-backend/src/main/native/llvm-backend: update to version ${llvm_backend_version}"; then
changed=true
fi
nix flake update
if git add flake.lock && git commit -m 'flake.lock: update'; then
changed=true
fi
if ${changed}; then
git push
fi