Skip to content

Commit

Permalink
Add solc 0.8.27 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellwolf authored Sep 17, 2024
1 parent 9630767 commit 2d5cf3e
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ jobs:
set -x
# test `nix develop`
nix develop .# --command -- bash -c "solc-0.8.26 --version"
nix develop .# --command -- bash -c "solc-0.8.27 --version"
# test `nix shell`
nix shell .#solc_0_8_19
# test solc.nix as input to other flakes
# Note: overriding flake input is needed as a workaround to local sub flake with overlapping paths.
nix develop ./test/.# --override-input solc $PWD --command -- bash -c "solc --version"
nix develop ./test/.# --override-input solc $PWD --command -- bash -c "solc-0.8.26 --version"
nix develop ./test/.# --override-input solc $PWD --command -- bash -c "solc-0.8.27 --version"
ci-check-success:
needs: [ci]
runs-on: ubuntu-latest
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

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

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
flake-utils.url = "github:numtide/flake-utils";
solc-macos-amd64-list-json = {
# Go to https://github.com/ethereum/solc-bin/blob/gh-pages/macosx-amd64/list.json to obtain a revision
url = "file+https://github.com/ethereum/solc-bin/raw/f743ca7/macosx-amd64/list.json";
url = "file+https://github.com/ethereum/solc-bin/raw/a2346e2/macosx-amd64/list.json";
flake = false;
};
};
Expand Down Expand Up @@ -38,7 +38,7 @@
in
{
# default shell with the latest solc compiler
devShells.default = pkgs.mkShell { buildInputs = [ pkgs.solc_0_8_26 ]; };
devShells.default = pkgs.mkShell { buildInputs = [ pkgs.solc_0_8_27 ]; };

# export all solc packages
packages = pkgs.solcPackages;
Expand Down
8 changes: 8 additions & 0 deletions solc-listing.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
[ # DO NOT MODIFY! AUTO GENERATED BY ./utils/create-listing.sh
{
version = "0.8.27";
sha256 = {
solc-static-linux = "sha256-uZd9UAwXy6bwAyypOe+YxN7PY2PxnzhtBfsC9wgRUmQ=";
solc-macos-amd64 = "sha256-jEBvpcq5vQoXXaAsZSBy+BTD0GIFov1tkrwVJZmmqrs=";
solc-macos-aarch64 = "sha256-jEBvpcq5vQoXXaAsZSBy+BTD0GIFov1tkrwVJZmmqrs=";
};
}
{
version = "0.8.26";
sha256 = {
Expand Down
4 changes: 2 additions & 2 deletions test/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
mkShell {
buildInputs =
[
solc_0_8_26
(solc.mkDefault pkgs solc_0_8_26)
solc_0_8_27
(solc.mkDefault pkgs solc_0_8_27)
]
++ (
if system == "x86_64-linux" then
Expand Down
2 changes: 1 addition & 1 deletion utils/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ list_all_versions() {
for i in $(seq 0 17); do echo 0.5."$i"; done
for i in $(seq 0 9); do echo 0.6."$i"; done
for i in $(seq 0 6); do echo 0.7."$i"; done
for i in $(seq 0 26); do echo 0.8."$i"; done
for i in $(seq 0 27); do echo 0.8."$i"; done
}

run_wget() {
Expand Down

0 comments on commit 2d5cf3e

Please sign in to comment.