deps/kriscv_release: Set Version 0.1.65 #27
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: 'Update Dependencies' | |
on: | |
push: | |
branches: | |
- '_update-deps/runtimeverification/riscv-semantics' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
update-deps: | |
name: 'Update Dependency Versions' | |
runs-on: ubuntu-24.04 | |
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 [email protected] | |
- 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: | | |
KRISCV_VERSION=$(cat deps/kriscv_release) | |
sed -i 's!kriscv = { git = "https://github.com/runtimeverification/riscv-semantics.git", tag = "[v0-9\.]*" }!kriscv = { git = "https://github.com/runtimeverification/riscv-semantics.git", tag = "v'${KRISCV_VERSION}'" }!' pyproject.toml | |
poetry update | |
git add pyproject.toml poetry.lock && git commit -m "pyproject.toml: Sync Version ${KRISCV_VERSION}" || true | |
- name: 'Update K release' | |
run: | | |
K_VERSION=$(poetry run python3 -c 'import pyk; print(pyk.__version__)') | |
echo ${K_VERSION} > deps/k_release | |
git add deps/k_release && git commit -m "deps/k_release: Set Version ${K_VERSION}" || true | |
- name: 'Push updates' | |
run: git push |