-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update deps/runtimeverification/pyk (#576)
* .gitmodules, deps/k: remove K submodule * .github/update-version: get K version from pyk update * Makefile: remove stuff related to submodule build * pykwasm/: sync poetry files v0.1.631 * deps/pyk_release: Set Version v0.1.635 * pykwasm/: sync poetry files v0.1.635 * deps/k_release: sync release file version 6.2.31 * .github/test-pr: setup version bumper * .github/master-push: publish github releases on master push * Set Version: 0.1.1 --------- Co-authored-by: devops <[email protected]>
- Loading branch information
Showing
11 changed files
with
62 additions
and
133 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,31 @@ concurrency: | |
|
||
jobs: | ||
|
||
version-bump: | ||
name: 'Version Bump' | ||
runs-on: [self-hosted, linux, flyweight-ephemeral] | ||
steps: | ||
- name: 'Check out code' | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.JENKINS_GITHUB_PAT }} | ||
# fetch-depth 0 means deep clone the repo | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: 'Configure GitHub user' | ||
run: | | ||
git config user.name devops | ||
git config user.email [email protected] | ||
- name: 'Update version' | ||
run: | | ||
og_version=$(git show origin/${GITHUB_BASE_REF}:package/version) | ||
./package/version.sh bump ${og_version} | ||
./package/version.sh sub | ||
new_version=$(cat package/version) | ||
git add --update && git commit --message "Set Version: ${new_version}" || true | ||
- name: 'Push updates' | ||
run: git push origin HEAD:${GITHUB_HEAD_REF} | ||
|
||
pykwasm-code-quality-checks: | ||
name: 'Code Quality Checks' | ||
runs-on: ubuntu-latest | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ name: 'Update Version' | |
on: | ||
push: | ||
branches: | ||
- '_update-deps/runtimeverification/k' | ||
- '_update-deps/runtimeverification/pyk' | ||
# Stop in progress workflows on the same branch and same workflow to use latest committed code | ||
concurrency: | ||
|
@@ -23,23 +22,18 @@ jobs: | |
- run: | | ||
git config user.name devops | ||
git config user.email [email protected] | ||
- name: 'Update K submodule' | ||
run: | | ||
K_VERSION="$(cat deps/k_release)" | ||
cd deps/k | ||
git fetch --tags | ||
git checkout "v${K_VERSION}" | ||
cd - | ||
git add deps/k && git commit -m "deps/k: sync submodule v${K_VERSION}" || true | ||
- name: 'Install Poetry' | ||
uses: Gr1N/setup-poetry@v8 | ||
- name: 'Update pyk Release tag' | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python3 - --version 1.3.2 | ||
poetry --version | ||
pyk_version="$(cat deps/pyk_release)" | ||
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}'" }!' pykwasm/pyproject.toml | ||
cd pykwasm | ||
poetry update | ||
cd - | ||
poetry -C pykwasm update | ||
git add pykwasm/ && git commit -m "pykwasm/: sync poetry files ${pyk_version}" || true | ||
- name: 'Update K release file' | ||
run: | | ||
K_VERSION=$(poetry -C pykwasm 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: 'Push updates' | ||
run: git push |
This file contains 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
This file contains 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
Submodule k
deleted from
56e36d
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6.2.27 | ||
6.2.31 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v0.1.631 | ||
v0.1.635 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.0 | ||
0.1.1 |
Oops, something went wrong.