From 52b6994c27dc1fe387bda0026ab873fe20d07d55 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Tue, 16 Jun 2026 23:42:28 +0000 Subject: [PATCH] init --- .github/workflows/build-docker.yaml | 26 ++++- .github/workflows/deploy-preview.yml | 26 ++++- .github/workflows/git-clean.yaml | 26 ++++- .github/workflows/standard-publish.yaml | 27 +++-- .github/workflows/standard-test.yaml | 50 +++++++-- flake.lock | 133 ++++++++++++++++++------ 6 files changed, 231 insertions(+), 57 deletions(-) diff --git a/.github/workflows/build-docker.yaml b/.github/workflows/build-docker.yaml index 462ad6d2..4f5c2476 100644 --- a/.github/workflows/build-docker.yaml +++ b/.github/workflows/build-docker.yaml @@ -26,12 +26,28 @@ jobs: submodules: recursive fetch-depth: 0 - - name: Install Nix 1/2 - uses: DeterminateSystems/nix-installer-action@main + - uses: nixbuild/nix-quick-install-action@v30 with: - determinate: true - - name: Install Nix 2/2 - uses: DeterminateSystems/flakehub-cache-action@main + nix_conf: | + keep-env-derivations = true + keep-outputs = true + - uses: cachix/cachix-action@v15 + continue-on-error: true + with: + name: rainlanguage + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + useDaemon: false + - name: Restore and save Nix store + uses: nix-community/cache-nix-action@v6 + with: + # restore and save a cache using this key + primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} + # if there's no cache hit, restore a cache by this prefix + restore-prefixes-first-match: nix-${{ runner.os }}- + # collect garbage until the Nix store size (in bytes) is at most this number + # before trying to save a new cache + # 1G = 1073741824 + gc-max-store-size-linux: 10G - name: Prepare Sushi Lib run: ./prep-sushi.sh diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 2a3680df..e23c71c8 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -22,12 +22,28 @@ jobs: submodules: recursive fetch-depth: 0 - - name: Install Nix 1/2 - uses: DeterminateSystems/nix-installer-action@main + - uses: nixbuild/nix-quick-install-action@v30 with: - determinate: true - - name: Install Nix 2/2 - uses: DeterminateSystems/flakehub-cache-action@main + nix_conf: | + keep-env-derivations = true + keep-outputs = true + - uses: cachix/cachix-action@v15 + continue-on-error: true + with: + name: rainlanguage + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + useDaemon: false + - name: Restore and save Nix store + uses: nix-community/cache-nix-action@v6 + with: + # restore and save a cache using this key + primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} + # if there's no cache hit, restore a cache by this prefix + restore-prefixes-first-match: nix-${{ runner.os }}- + # collect garbage until the Nix store size (in bytes) is at most this number + # before trying to save a new cache + # 1G = 1073741824 + gc-max-store-size-linux: 10G - name: Prepare Sushi Lib run: ./prep-sushi.sh diff --git a/.github/workflows/git-clean.yaml b/.github/workflows/git-clean.yaml index 8d8ff5bc..453e241a 100644 --- a/.github/workflows/git-clean.yaml +++ b/.github/workflows/git-clean.yaml @@ -13,12 +13,28 @@ jobs: submodules: recursive fetch-depth: 0 - - name: Install Nix 1/2 - uses: DeterminateSystems/nix-installer-action@main + - uses: nixbuild/nix-quick-install-action@v30 with: - determinate: true - - name: Install Nix 2/2 - uses: DeterminateSystems/flakehub-cache-action@main + nix_conf: | + keep-env-derivations = true + keep-outputs = true + - uses: cachix/cachix-action@v15 + continue-on-error: true + with: + name: rainlanguage + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + useDaemon: false + - name: Restore and save Nix store + uses: nix-community/cache-nix-action@v6 + with: + # restore and save a cache using this key + primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} + # if there's no cache hit, restore a cache by this prefix + restore-prefixes-first-match: nix-${{ runner.os }}- + # collect garbage until the Nix store size (in bytes) is at most this number + # before trying to save a new cache + # 1G = 1073741824 + gc-max-store-size-linux: 10G - name: Prepare Sushi Lib run: ./prep-sushi.sh diff --git a/.github/workflows/standard-publish.yaml b/.github/workflows/standard-publish.yaml index 98cadb25..61e80377 100644 --- a/.github/workflows/standard-publish.yaml +++ b/.github/workflows/standard-publish.yaml @@ -30,13 +30,28 @@ jobs: submodules: recursive fetch-depth: 0 - # Install nix - - name: Install Nix 1/2 - uses: DeterminateSystems/nix-installer-action@main + - uses: nixbuild/nix-quick-install-action@v30 with: - determinate: true - - name: Install Nix 2/2 - uses: DeterminateSystems/flakehub-cache-action@main + nix_conf: | + keep-env-derivations = true + keep-outputs = true + - uses: cachix/cachix-action@v15 + continue-on-error: true + with: + name: rainlanguage + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + useDaemon: false + - name: Restore and save Nix store + uses: nix-community/cache-nix-action@v6 + with: + # restore and save a cache using this key + primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} + # if there's no cache hit, restore a cache by this prefix + restore-prefixes-first-match: nix-${{ runner.os }}- + # collect garbage until the Nix store size (in bytes) is at most this number + # before trying to save a new cache + # 1G = 1073741824 + gc-max-store-size-linux: 10G # Prepare and build sushi lib - name: Build Sushi Lib diff --git a/.github/workflows/standard-test.yaml b/.github/workflows/standard-test.yaml index 6ea1fffc..3304e126 100644 --- a/.github/workflows/standard-test.yaml +++ b/.github/workflows/standard-test.yaml @@ -19,12 +19,28 @@ jobs: submodules: recursive fetch-depth: 0 - - name: Install Nix 1/2 - uses: DeterminateSystems/nix-installer-action@main + - uses: nixbuild/nix-quick-install-action@v30 with: - determinate: true - - name: Install Nix 2/2 - uses: DeterminateSystems/flakehub-cache-action@main + nix_conf: | + keep-env-derivations = true + keep-outputs = true + - uses: cachix/cachix-action@v15 + continue-on-error: true + with: + name: rainlanguage + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + useDaemon: false + - name: Restore and save Nix store + uses: nix-community/cache-nix-action@v6 + with: + # restore and save a cache using this key + primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} + # if there's no cache hit, restore a cache by this prefix + restore-prefixes-first-match: nix-${{ runner.os }}- + # collect garbage until the Nix store size (in bytes) is at most this number + # before trying to save a new cache + # 1G = 1073741824 + gc-max-store-size-linux: 10G - name: Prepare Sushi Lib run: ./prep-sushi.sh @@ -52,8 +68,28 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@v4 - - uses: DeterminateSystems/magic-nix-cache-action@v2 + - uses: nixbuild/nix-quick-install-action@v30 + with: + nix_conf: | + keep-env-derivations = true + keep-outputs = true + - uses: cachix/cachix-action@v15 + continue-on-error: true + with: + name: rainlanguage + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + useDaemon: false + - name: Restore and save Nix store + uses: nix-community/cache-nix-action@v6 + with: + # restore and save a cache using this key + primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} + # if there's no cache hit, restore a cache by this prefix + restore-prefixes-first-match: nix-${{ runner.os }}- + # collect garbage until the Nix store size (in bytes) is at most this number + # before trying to save a new cache + # 1G = 1073741824 + gc-max-store-size-linux: 10G - name: Prepare Sushi Lib run: ./prep-sushi.sh diff --git a/flake.lock b/flake.lock index 18d153f1..ff817fa9 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,21 @@ { "nodes": { + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1767039857, + "narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=", + "owner": "NixOS", + "repo": "flake-compat", + "rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "flake-compat", + "type": "github" + } + }, "flake-utils": { "inputs": { "systems": "systems" @@ -75,11 +91,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1741023058, - "narHash": "sha256-LSd/8CBlpDLjci5ANFJjP0w+dGdY/mqKsyUfhjGwnfs=", + "lastModified": 1778486972, + "narHash": "sha256-iuy/TbK9AbghEld2VSFuxyAF30LkOGUUdtrvixLfE7M=", "owner": "shazow", "repo": "foundry.nix", - "rev": "66becfe20b7e688b8f2e5774609c4436cf202ba0", + "rev": "db117ae95a77b9ead24137c3ccb28896ae4fa4ec", "type": "github" }, "original": { @@ -88,6 +104,48 @@ "type": "github" } }, + "git-hooks-nix": { + "inputs": { + "flake-compat": "flake-compat", + "gitignore": "gitignore", + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1778507602, + "narHash": "sha256-kTwur1wV+01SdqskVMSo6JMEpg71ps3HpbFY2GsflKs=", + "owner": "cachix", + "repo": "git-hooks.nix", + "rev": "61ab0e80d9c7ab14c256b5b453d8b3fb0189ba0a", + "type": "github" + }, + "original": { + "owner": "cachix", + "repo": "git-hooks.nix", + "type": "github" + } + }, + "gitignore": { + "inputs": { + "nixpkgs": [ + "rainix", + "git-hooks-nix", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1709087332, + "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", + "owner": "hercules-ci", + "repo": "gitignore.nix", + "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "gitignore.nix", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1666753130, @@ -104,11 +162,27 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1741078842, - "narHash": "sha256-585m711y0v7B2PEMjh69r0WUBPaH5fTQZKwz8yjJOEo=", + "lastModified": 1770073757, + "narHash": "sha256-Vy+G+F+3E/Tl+GMNgiHl9Pah2DgShmIUBJXmbiQPHbI=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "47472570b1e607482890801aeaf29bfb749884f6", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { + "locked": { + "lastModified": 1778656924, + "narHash": "sha256-lKVrom9wOmpC3i7m+uBoGaBdW0PfH3QbLRG1XmuC6YA=", "owner": "nixos", "repo": "nixpkgs", - "rev": "5aeeed52dfcf14c2021628cce169da8d6a6f5e41", + "rev": "4ba039de0909446943c07e2b42bd2f0f4507072e", "type": "github" }, "original": { @@ -117,13 +191,13 @@ "type": "github" } }, - "nixpkgs_3": { + "nixpkgs_4": { "locked": { - "lastModified": 1736320768, - "narHash": "sha256-nIYdTAiKIGnFNugbomgBJR+Xv5F1ZQU+HfaBqJKroC0=", + "lastModified": 1744536153, + "narHash": "sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "4bc9c909d9ac828a039f288cf872d16d38185db8", + "rev": "18dd725c29603f582cf1900e0d25f9f1063dbf11", "type": "github" }, "original": { @@ -133,13 +207,13 @@ "type": "github" } }, - "nixpkgs_4": { + "nixpkgs_5": { "locked": { - "lastModified": 1731531548, - "narHash": "sha256-sz8/v17enkYmfpgeeuyzniGJU0QQBfmAjlemAUYhfy8=", + "lastModified": 1777641297, + "narHash": "sha256-WNGcmeOZ8Tr9dq6ztCspYbzWFswr2mPebM9LpsfGxPk=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "24f0d4acd634792badd6470134c387a3b039dace", + "rev": "c6d65881c5624c9cae5ea6cedef24699b0c0a4c0", "type": "github" }, "original": { @@ -153,16 +227,17 @@ "inputs": { "flake-utils": "flake-utils_2", "foundry": "foundry", - "nixpkgs": "nixpkgs_2", + "git-hooks-nix": "git-hooks-nix", + "nixpkgs": "nixpkgs_3", "rust-overlay": "rust-overlay", "solc": "solc" }, "locked": { - "lastModified": 1742967497, - "narHash": "sha256-A34SKRGWMgd392bOsrcEltJwIO7ANMu17RoLeCSaYq0=", + "lastModified": 1781594562, + "narHash": "sha256-eBUPpUIkHLJvS2IHk0CLvLs5MOlyRgjH/VsK19iu7HQ=", "owner": "rainprotocol", "repo": "rainix", - "rev": "6ce0d465018c6bfa750c1465afb4cbc6137120b4", + "rev": "f6bca081825f0fed57a8885e58feb4296307da20", "type": "github" }, "original": { @@ -179,14 +254,14 @@ }, "rust-overlay": { "inputs": { - "nixpkgs": "nixpkgs_3" + "nixpkgs": "nixpkgs_4" }, "locked": { - "lastModified": 1741055476, - "narHash": "sha256-52vwEV0oS2lCnx3c/alOFGglujZTLmObit7K8VblnS8=", + "lastModified": 1778642276, + "narHash": "sha256-bhk4lawR4ZnFhPtamB5WkCyvfgyZmsEUbWfT/3FRxFY=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "aefb7017d710f150970299685e8d8b549d653649", + "rev": "77265d2dc1e61b2abfd3b1d6609dbb66fe75e0a5", "type": "github" }, "original": { @@ -198,15 +273,15 @@ "solc": { "inputs": { "flake-utils": "flake-utils_4", - "nixpkgs": "nixpkgs_4", + "nixpkgs": "nixpkgs_5", "solc-macos-amd64-list-json": "solc-macos-amd64-list-json" }, "locked": { - "lastModified": 1731758759, - "narHash": "sha256-NX4+V6Q8bwopah0oza/Dpf6UsYNGbokW2kE9qT3wdHY=", + "lastModified": 1777817996, + "narHash": "sha256-iI71iUhD7THLibl3w1JcQEhHmTwZMxChi70RTe33BAo=", "owner": "hellwolf", "repo": "solc.nix", - "rev": "0714c24cd521b9eb3ee435818c5d743ac6179176", + "rev": "e3cf898cb804d5c0e5474b378a300fe8942e67d6", "type": "github" }, "original": { @@ -218,13 +293,13 @@ "solc-macos-amd64-list-json": { "flake": false, "locked": { - "narHash": "sha256-KBEEpcDeKtVvCeguRP0D499yg9O5Jef9Nxn3yfrmw9g=", + "narHash": "sha256-zzwwHA2qPotv7yp8mK7+y9BZhm7ytuFeCJVvKBBdBn4=", "type": "file", - "url": "https://github.com/ethereum/solc-bin/raw/67f45d8/macosx-amd64/list.json" + "url": "https://github.com/argotorg/solc-bin/raw/902dfaf/macosx-amd64/list.json" }, "original": { "type": "file", - "url": "https://github.com/ethereum/solc-bin/raw/67f45d8/macosx-amd64/list.json" + "url": "https://github.com/argotorg/solc-bin/raw/902dfaf/macosx-amd64/list.json" } }, "systems": {