From 14c0a1be163222a6b5c0b88aeacd2154d2cc9724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20T=C3=B3th?= Date: Mon, 13 May 2024 08:41:31 +0000 Subject: [PATCH] Add update workflow --- .github/workflows/update.yml | 39 ++++++++++++++++++++++++++++++++++++ deps/k_release | 2 +- pyproject.toml | 2 +- 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/update.yml diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 00000000..46f61b66 --- /dev/null +++ b/.github/workflows/update.yml @@ -0,0 +1,39 @@ +name: 'Update Version' +on: + push: + branches: + - '_update-deps/runtimeverification/k' + - 'project-setup' + workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + update-deps: + name: 'Update Dependecies' + runs-on: [self-hosted, linux, flyweight] + steps: + - name: 'Check out code' + uses: actions/checkout@v4 + with: + submodules: recursive + token: ${{ secrets.JENKINS_GITHUB_PAT }} + - name: 'Configure GitHub user' + run: | + git config user.name devops + git config user.email devops@runtimeverification.com + - name: 'Install Python' + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: 'Install Poetry' + uses: Gr1N/setup-poetry@v9 + - name: 'Update Poetry files' + run: | + K_VERSION="$(cat deps/k_release)" + sed -i 's!pyk = { git = "https://github.com/runtimeverification/k.git", tag = "[v0-9\.]*", subdirectory = "pyk" }!pyk = { git = "https://github.com/runtimeverification/k.git", tag = "v'${K_VERSION}'", subdirectory = "pyk" }!' pyproject.toml + poetry update + git add . && git commit -m "Sync Poetry files ${K_VERSION}" || true + - name: 'Push updates' + run: git push diff --git a/deps/k_release b/deps/k_release index c383cbf8..de5f6571 100644 --- a/deps/k_release +++ b/deps/k_release @@ -1 +1 @@ -7.0.56 +7.0.60 diff --git a/pyproject.toml b/pyproject.toml index 7e97f3eb..5b14b55d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ riscv-semantics = "kriscv.kdist.plugin" [tool.poetry.dependencies] python = "^3.10" -pyk = { git = "https://github.com/runtimeverification/k.git", tag = "v7.0.56", subdirectory = "pyk" } +pyk = { git = "https://github.com/runtimeverification/k.git", tag = "v0.0.0", subdirectory = "pyk" } [tool.poetry.group.dev.dependencies] autoflake = "*"