Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
dce0af0
simple-untyped: kompile against the haskell backend
nishantjr Aug 30, 2022
0438502
simple-untyped: Fix labels for overloaded lists
nishantjr Aug 30, 2022
46b94b9
simple-untyped: Move to llvm backend, enable search
nishantjr Aug 30, 2022
0c6f342
Fix collision between initial thread id and first thread spawned.
nishantjr Aug 30, 2022
0a798ac
div-nondet.simple.out: Update to use LLVM's output format
nishantjr Aug 30, 2022
a23b7c0
thread04: Correct output (NB: Previous output was incorrect accordin…
nishantjr Aug 30, 2022
d165aed
div-nondet: Drop output case not possible without now unavailable sup…
nishantjr Aug 30, 2022
f2dca5e
Update formatting for new backends
nishantjr Aug 30, 2022
b694bed
Fix formatting
nishantjr Aug 30, 2022
ac0338d
Merge branch 'develop' into simple-untyped-llvm
nishantjr Oct 11, 2022
4121e01
Merge branch 'develop' into simple-untyped-llvm
Oct 18, 2022
dced716
Merge branch 'develop' into simple-untyped-llvm
radumereuta Nov 4, 2022
60572d1
Update threads_05 test
radumereuta Nov 4, 2022
82be390
Update k-exercises expected results
radumereuta Nov 7, 2022
c59136f
Revert workflow change
radumereuta Nov 7, 2022
d95f28b
Merge branch 'develop' into simple-untyped-llvm
radumereuta Nov 7, 2022
753edc9
.github/workflows: use new cachix keys
ehildenb Nov 8, 2022
775926e
.github/: adjustments to cachix steps
ehildenb Nov 8, 2022
e0c2f09
.github/test-pr: try using extraPullNames to speed up process
ehildenb Nov 9, 2022
91f1133
Revert ".github/test-pr: try using extraPullNames to speed up process"
ehildenb Nov 9, 2022
89b7e9d
.github/test-pr: update nix install steps
ehildenb Nov 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/master-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ jobs:
uses: cachix/cachix-action@v10
with:
name: k-framework
signingKey: '${{ secrets.RV_DEVOPS_CACHIX_TOKEN }}'
authToken: '${{ secrets.CACHIX_PUBLIC_TOKEN }}'
skipPush: true

- name: 'Build and cache K Framework'
uses: workflow/nix-shell-action@v3
env:
GC_DONT_GC: 1
CACHIX_AUTH_TOKEN: '${{ secrets.RV_DEVOPS_CACHIX_TOKEN }}'
CACHIX_AUTH_TOKEN: '${{ secrets.CACHIX_PUBLIC_TOKEN }}'
with:
packages: jq
script: |
k=$(nix build .#k --json | jq -r '.[].outputs | to_entries[].value')
drv=$(nix-store --query --deriver ${k})
nix-store --query --requisites --include-outputs ${drv} | cachix push k-framework
nix-store --query --requisites --include-outputs ${drv} | cachix push k-framework
19 changes: 8 additions & 11 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ jobs:
- name: 'Install Cachix'
uses: cachix/cachix-action@v10
with:
name: runtimeverification
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
name: k-framework
authToken: '${{ secrets.CACHIX_PUBLIC_TOKEN }}'
skipPush: true

- name: 'Update Maven dependencies, push changes'
Expand Down Expand Up @@ -155,9 +155,8 @@ jobs:
if: ${{ !startsWith(matrix.os, 'self') }}
uses: cachix/cachix-action@v10
with:
name: runtimeverification
extraPullNames: kore
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
name: k-framework
authToken: '${{ secrets.CACHIX_PUBLIC_TOKEN }}'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jberthold we do set up the extra_nix_config here, but it doesn't run on our own CI machines, so I guess it's not actually using taht. We could add back extraPullNames: kore, but I'd like to consolidate caches.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I meant to suggest was to add the https://cache.iog.io substituter (IOHK Haskell infra cache), in "Install Nix".
We do this about 8 lines above here but the test-nix job in https://github.com/runtimeverification/k/blob/91f11338d4ccf3626f4e8874e10071e09d5131c6/.github/workflows/test-pr.yml#L192..L198 does not add that cache.
Thought it would be worth a try

- name: 'Build K Framework'
run: GC_DONT_GC=1 nix build .
Expand Down Expand Up @@ -191,20 +190,18 @@ jobs:
run: brew install bash

- name: 'Install Nix'
if: ${{ !startsWith(matrix.os, 'self') }}
uses: cachix/install-nix-action@v14.1
with:
install_url: 'https://releases.nixos.org/nix/nix-2.3.16/install'
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
substituters = http://cache.nixos.org https://cache.iog.io
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=

- name: 'Install Cachix'
if: ${{ !startsWith(matrix.os, 'self') }}
uses: cachix/cachix-action@v10
with:
name: runtimeverification
extraPullNames: kore
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
name: k-framework
authToken: '${{ secrets.CACHIX_PUBLIC_TOKEN }}'

- name: 'Build K Framework'
run: nix-build -A k -A llvm-backend -A haskell-backend
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/update-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ jobs:
- name: 'Install Cachix'
uses: cachix/cachix-action@v10
with:
name: runtimeverification
extraPullNames: kore
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
name: k-framework
authToken: '${{ secrets.CACHIX_PUBLIC_TOKEN }}'

- name: 'Update Nix flake inputs from submodules'
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ MAKEFILE_PATH := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
DEF=simple-untyped
EXT=simple
TESTDIR=tests/*
KOMPILE_FLAGS=--transition strict
KOMPILE_BACKEND?=java
KOMPILE_FLAGS=--enable-search
KOMPILE_BACKEND?=llvm
KRUN_FLAGS=--output none --smt none

include $(MAKEFILE_PATH)/../../../find-k.mak
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
S ==K "0\n"
{
S:String
#Equals
"1\n"
}
#Or
S ==K "1\n"
{
S:String
#Equals
"2\n"
}
#Or
S ==K "2\n"
#Or
S ==K "3\n"
{
S:String
#Equals
"3\n"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
S ==K "2 5\n"
{
S:String
#Equals
"2 5\n"
}
#Or
S ==K "2 6\n"
{
S:String
#Equals
"2 6\n"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
S ==K "5\n"
{
S:String
#Equals
"5\n"
}
#Or
S ==K "7\n"
{
S:String
#Equals
"7\n"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
S ==K "5\n"
{
S:String
#Equals
"5\n"
}
#Or
S ==K "7\n"
{
S:String
#Equals
"7\n"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
S ==K "2 3 "
{
S:String
#Equals
"2 3 "
}
#Or
S ==K "3 2 "
{
S:String
#Equals
"3 2 "
}
#Or
{
S:String
#Equals
"23 "
}
#Or
{
S:String
#Equals
"32 "
}
Loading