-
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.
Revert "Revert "Set LLVM backend up to receive automatic updates from…
… scala-kore"" (#1012) Reverts #1010 This PR reinstates the fixed Nix infrastructure that was reverted for POM incompatibility reasons; once this is merged we will stop experiencing the Nix hash invalidation issues that were bothering us over the weekend. I have verified locally that the changes in #1014 would have caught the problem that we needed to revert in the first place, but this PR needs to get merged first so that the CI will start working for that PR. The only non-revert changes here are to add an explicit plugin dependency on the maven compiler with the appropriate source version set explicitly, and to update the Nix hash as a result. The remainder of the PR has been reviewed already.
- Loading branch information
Showing
8 changed files
with
91 additions
and
9 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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: 'Update dependencies' | ||
on: | ||
push: | ||
branches: | ||
- '_update-deps/runtimeverification/scala-kore' | ||
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: | ||
update-versions: | ||
name: 'Update scala-kore version' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Check out code' | ||
uses: actions/checkout@v3 | ||
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: 'Update scala-kore release tag' | ||
run: ./scripts/update-scala-kore.sh | ||
|
||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.3.0 |
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
SCALA_KORE_VERSION="$(cat matching/deps/scala_kore_release)" | ||
changed=false | ||
|
||
sed -i 's!^ <scala-kore.version>.*</scala-kore.version>$! <scala-kore.version>'"${SCALA_KORE_VERSION}"'</scala-kore.version>!' matching/pom.xml | ||
if git add matching/pom.xml && git commit -m "matching: update scala-kore to ${SCALA_KORE_VERSION}"; then | ||
changed=true | ||
fi | ||
|
||
if [ "${changed}" = "true" ]; then | ||
sed -i 's! mvnHash = "sha256-.*";! mvnHash = "";!' nix/overlay.nix | ||
(git add nix/overlay.nix && git commit -m "nix: invalidate maven packages hash") || true | ||
fi |