Skip to content

deps/pyk_release: Set Version v0.1.506 #810

deps/pyk_release: Set Version v0.1.506

deps/pyk_release: Set Version v0.1.506 #810

Workflow file for this run

name: 'Update Version'
on:
push:
branches:
- '_update-deps/runtimeverification/pyk'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update-versions:
name: 'Update pyk version'
runs-on: [self-hosted, linux, flyweight]
steps:
- name: 'Check out code'
uses: actions/checkout@v3
with:
token: ${{ secrets.JENKINS_GITHUB_PAT }}
- name: 'Install Poetry'
run: |
curl -sSL https://install.python-poetry.org | python3 - --version 1.3.2
echo ${HOME}/.local/bin >> $GITHUB_PATH
- name: 'Update pyk release tag'
run: |
PYK_VERSION=$(cat ./deps/pyk_release)
cd kmir
sed -i 's!pyk = { git = "https://github.com/runtimeverification/pyk.git", tag = "[v0-9\.]*" }!pyk = { git = "https://github.com/runtimeverification/pyk.git", tag = "'${PYK_VERSION}'" }!' pyproject.toml
poetry update
git add pyproject.toml poetry.lock
git commit -m 'kmir/{pyproject.toml,poetry.lock}: sync Poetry files' || true
- name: 'Update K release tag'
run: |
K_VERSION=$(poetry -C kmir run python3 -c 'import pyk; print(pyk.K_VERSION)')
echo ${K_VERSION} > deps/k_release
git add deps/k_release && git commit -m "deps/k_release: sync release file version ${K_VERSION}" || true
- name: 'Update Nix flake inputs'
run: |
K_VERSION=$(cat deps/k_release)
PYK_VERSION=$(cat ./deps/pyk_release)
sed -i 's! k-framework.url = "github:runtimeverification/k/[v0-9\.]*"! k-framework.url = "github:runtimeverification/k/v'"${K_VERSION}"'"!' flake.nix
sed -i 's! pyk.url = "github:runtimeverification/pyk/[v0-9\.]*"! pyk.url = "github:runtimeverification/pyk/'"${PYK_VERSION}"'"!' flake.nix
nix --extra-experimental-features 'nix-command flakes' --show-trace flake update
git add flake.nix flake.lock
git commit -m 'flake.{nix,lock}: update Nix derivations' || true
- name: 'Push updates'
run: git push