Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ permissions:

jobs:
publish:
uses: Emerging-Patterns/actions/.github/workflows/publish.yml@df4af92903396c9021937801c4f7f0c26ac3e890
uses: Emerging-Patterns/actions/.github/workflows/publish.yml@73b2fbc64cefd6e22bd786437adb5f35190ee837
with:
tag: ${{ inputs.tag }}
hub-name: emerging-ezjson
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
contents: write
pull-requests: write
issues: write
uses: Emerging-Patterns/actions/.github/workflows/release-please.yml@df4af92903396c9021937801c4f7f0c26ac3e890
uses: Emerging-Patterns/actions/.github/workflows/release-please.yml@73b2fbc64cefd6e22bd786437adb5f35190ee837
with:
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
Expand All @@ -32,7 +32,7 @@ jobs:
if: needs.release-please.outputs.release_created == 'true'
permissions:
contents: read
uses: Emerging-Patterns/actions/.github/workflows/publish.yml@df4af92903396c9021937801c4f7f0c26ac3e890
uses: Emerging-Patterns/actions/.github/workflows/publish.yml@73b2fbc64cefd6e22bd786437adb5f35190ee837
with:
tag: ${{ needs.release-please.outputs.tag_name }}
hub-name: emerging-ezjson
Expand Down
5 changes: 3 additions & 2 deletions ez.lock.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ hub = "https://hub.bend-lang.com"
[tools]
[tools.bolt]
git = "https://github.com/Emerging-Patterns/bolt"
rev = "efb82d24598bd3e9e64004bc443093d4dd072173"
rev = "358c2da98df8d2d15c5ceaa3a56521212b9029ca"
tag = "v1.17.0"
root = "."
narHash = "sha256-hw4rVnEWEi9Q/Cen7ZGqdz+lYm1vup3+52rBwCEBskY="
narHash = "sha256-J+XYAGvL7FOs4NgRwGG8itNlYTIQBM7dNq/r5nrB1Z8="
entry = "main.bend"
7 changes: 4 additions & 3 deletions ez.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[package]
name = "ezjson"
entry = "main.bend"

[tools]
[tools.bolt]
git = "https://github.com/Emerging-Patterns/bolt"
rev = "efb82d24598bd3e9e64004bc443093d4dd072173"
rev = "358c2da98df8d2d15c5ceaa3a56521212b9029ca"
tag = "v1.17.0"
root = "."
narHash = "sha256-hw4rVnEWEi9Q/Cen7ZGqdz+lYm1vup3+52rBwCEBskY="
narHash = "sha256-J+XYAGvL7FOs4NgRwGG8itNlYTIQBM7dNq/r5nrB1Z8="
entry = "main.bend"
32 changes: 6 additions & 26 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 3 additions & 21 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@
url = "github:bendlang/bend/042e797ebd1cfc060603e2682879909fe86fa8c2";
inputs.nixpkgs.follows = "nixpkgs";
};
# Interim: ez 1.5.0 does not build on 2.0.38 yet, so ez (and the bolt it
# builds for mkLint) stays on its own bend, 2.0.36. The proofs run on this
# flake's bend (checks.proofs below). The tooling pass, once ez releases on
# 2.0.38, puts `inputs.bend.follows = "bend"` and ez.mkProofs back.
inputs.ez = {
url = "github:Emerging-Patterns/ez";
inputs.nixpkgs.follows = "nixpkgs";
inputs.bend.url = "github:bendlang/bend/eebc18cd04daeade06c3f68c3c96c1faefd3462f";
inputs.bend.follows = "bend";
};

outputs = { self, nixpkgs, ... }@inputs:
Expand All @@ -26,7 +22,7 @@
ez = inputs.ez.lib.${system};
ezBin = inputs.ez.packages.${system}.default;
bend = inputs.bend.packages.${system}.default;
bolt = ez.toolPackage { name = "bolt"; src = self; wrapFlags = [ "--gpu" "off" ]; };
bolt = ez.toolPackage { name = "bolt"; src = self; inherit bend; wrapFlags = ez.rtsFlags bend [ "--gpu" "off" ]; };
bend-cc = ez.bend-cc;

bench = import ./bench {
Expand All @@ -47,21 +43,7 @@
apps.${system} = bench.apps;

checks.${system} = {
# every PROOF.bend must print ALL PROOFS CHECK, on this flake's bend
# (interim for ez.mkProofs, which runs ez's own bend)
proofs = pkgs.runCommand "ezjson-proofs" {
nativeBuildInputs = [ bend ];
BEND_LIB = ez.bendLib ./ez.lock.toml;
} ''
export HOME=$TMPDIR
cp -r ${self} src && chmod -R u+w src && cd src
for p in $(find . -name PROOF.bend -not -path './.ez/*' | sort); do
first=$(cd "$(dirname "$p")" && bend "$(basename "$p")" | head -n 1)
echo "$p: $first"
[ "$first" = "ALL PROOFS CHECK" ] || exit 1
done
touch $out
'';
proofs = ez.mkProofs { ez = ezBin; src = self; };
lint = ez.mkLint { src = self; };
} // bench.checks // scale.checks;

Expand Down
Loading