Skip to content

Commit 6645d8e

Browse files
rv-jenkinsrv-auditorF-WRunTimeBaltolidkcumming
authored
Update dependency: deps/pyk_release (#282)
* deps/pyk_release: Set Version v0.1.531 * Set Version: 0.2.5 * kmir/{pyproject.toml,poetry.lock}: sync Poetry files * deps/k_release: sync release file version 6.1.42 * flake.{nix,lock}: update Nix derivations * deps/pyk_release: Set Version v0.1.532 * kmir/{pyproject.toml,poetry.lock}: sync Poetry files * flake.{nix,lock}: update Nix derivations * deps/pyk_release: Set Version v0.1.533 * kmir/{pyproject.toml,poetry.lock}: sync Poetry files * flake.{nix,lock}: update Nix derivations * deps/pyk_release: Set Version v0.1.534 * Set Version: 0.2.6 * kmir/{pyproject.toml,poetry.lock}: sync Poetry files * flake.{nix,lock}: update Nix derivations * Extend Nix testing to Mac Silicon and Linux (#284) * Extend Nix testing to Mac Silicon and Linux Testing running our nix kmir testing on Mac Silicon. * Set Version: 0.2.6 * Update test.yml * Set Version: 0.2.7 --------- Co-authored-by: devops <[email protected]> Co-authored-by: Bruce Collie <[email protected]> * Updated README to show Mac Silicon unsupported for Docker direct call. * correcting strange formatting error --------- Co-authored-by: devops <[email protected]> Co-authored-by: Freeman <[email protected]> Co-authored-by: Bruce Collie <[email protected]> Co-authored-by: dkcumming <[email protected]>
1 parent 61ecb79 commit 6645d8e

File tree

10 files changed

+39
-46
lines changed

10 files changed

+39
-46
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,25 +80,17 @@ jobs:
8080
nix:
8181
name: 'Nix'
8282
needs: code-quality-checks
83-
runs-on: ubuntu-latest
83+
strategy:
84+
matrix:
85+
include:
86+
- runner: [self-hosted, linux, normal]
87+
- runner: [self-hosted, macOS, ARM64]
88+
runs-on: ${{ matrix.runner }}
8489
timeout-minutes: 60
8590
steps:
8691
- name: 'Check out code'
8792
uses: actions/checkout@v3
88-
- name: 'Install Nix'
89-
uses: cachix/install-nix-action@v22
90-
with:
91-
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
92-
extra_nix_config: |
93-
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
94-
substituters = http://cache.nixos.org https://hydra.iohk.io
95-
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
96-
- name: 'Install Cachix'
97-
uses: cachix/cachix-action@v12
98-
with:
99-
name: k-framework
100-
authToken: '${{ secrets.CACHIX_PUBLIC_TOKEN }}'
10193
- name: 'Nix Build KMIR'
10294
run: GC_DONT_GC=1 nix build . --extra-experimental-features 'nix-command flakes' --print-build-logs
10395
- name: 'Nix Test KMIR'
104-
run: GC_DONT_GC=1 nix build --extra-experimental-features 'nix-command flakes' --print-build-logs .#kmir-test
96+
run: GC_DONT_GC=1 nix build --extra-experimental-features 'nix-command flakes' --print-build-logs .#kmir-test

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -152,21 +152,22 @@ source set_env.sh
152152

153153
## Working with Docker
154154
We provide a Docker image for isolated testing, locally and in CI.
155+
NOTE: Mac Silicon hardware not supported.
155156

156157
From the root of the repository:
157158
- Build the docker image (the `./deps/k_release` file pins the K version):
158-
```sh
159-
docker build . --tag kmir-tests --build-arg K_COMMIT=$(cat deps/k_release) --file .github/workflows/Dockerfile
160-
```
159+
```sh
160+
docker build . --tag kmir-tests --build-arg K_COMMIT=$(cat deps/k_release) --file .github/workflows/Dockerfile
161+
```
161162
- Run the integration tests in a container:
162-
```sh
163-
docker run --name kmir-container --rm --interactive --tty --detach --workdir /home/user kmir-tests &&
164-
docker cp . kmir-container:/home/user &&
165-
docker exec kmir-container chown -R user:user /home/user &&
166-
docker exec --user user kmir-container make -C kmir test-integration
167-
```
168-
169-
Note: you may need to run the `docker` commands with `sudo`, or start a superuser shell with `sudo -s`..
163+
```sh
164+
docker run --name kmir-container --rm --interactive --tty --detach --workdir /home/user kmir-tests &&
165+
docker cp . kmir-container:/home/user &&
166+
docker exec kmir-container chown -R user:user /home/user &&
167+
docker exec --user user kmir-container make -C kmir test-integration
168+
```
169+
170+
Note: you may need to run the `docker` commands with `sudo`, or start a superuser shell with `sudo -s`.
170171

171172
We use a similar workflow in CI actions defined in the `.github/` directory.
172173

deps/k_release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.1.41
1+
6.1.42

deps/pyk_release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.1.530
1+
v0.1.534

flake.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
description = " A flake for KMIR Semantics";
33

44
inputs = {
5-
k-framework.url = "github:runtimeverification/k/v6.1.41";
5+
k-framework.url = "github:runtimeverification/k/v6.1.42";
66
nixpkgs.follows = "k-framework/nixpkgs";
77
flake-utils.follows = "k-framework/flake-utils";
88
rv-utils.follows = "k-framework/rv-utils";
9-
pyk.url = "github:runtimeverification/pyk/v0.1.530";
9+
pyk.url = "github:runtimeverification/pyk/v0.1.534";
1010
nixpkgs-pyk.follows = "pyk/nixpkgs";
1111
poetry2nix.follows = "pyk/poetry2nix";
1212
};

kmir/poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kmir/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "kmir"
7-
version = "0.2.6"
7+
version = "0.2.7"
88
description = ""
99
authors = [
1010
"Runtime Verification, Inc. <[email protected]>",
@@ -13,7 +13,7 @@ authors = [
1313
[tool.poetry.dependencies]
1414
python = "^3.10"
1515
filelock = "3.9.0"
16-
pyk = { git = "https://github.com/runtimeverification/pyk.git", tag = "v0.1.530" }
16+
pyk = { git = "https://github.com/runtimeverification/pyk.git", tag = "v0.1.534" }
1717
pytest-timeout = "2.1.0"
1818

1919
[tool.poetry.group.dev.dependencies]

kmir/src/kmir/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
from .kmir import KMIR
44

5-
VERSION: Final = '0.2.6'
5+
VERSION: Final = '0.2.7'

package/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.6
1+
0.2.7

0 commit comments

Comments
 (0)