From fb80a66eeeb473c2e47538e514570c834e98335f Mon Sep 17 00:00:00 2001 From: Louis Page Date: Thu, 15 Feb 2024 16:18:06 -0600 Subject: [PATCH] Louis/large runner (#1340) * change ubuntu nix build os * Update nix.yml * Update nix.yml Adds logic for starting nix build on larger instance. * Trying a slight modification. Splitting up the workflow into 2 jobs worked in a separate repo. * fix build hash --------- Co-authored-by: rsoeldner Co-authored-by: June <38109440+DevopsGoth@users.noreply.github.com> Co-authored-by: jmcardon --- .github/workflows/nix.yml | 39 +++++++++++++++++++++++++++++++++++++-- cabal.project | 2 +- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 49b54edbb..c8da0dad5 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -9,13 +9,48 @@ on: - '.github/workflows/nix.yml' jobs: - build-and-cache: + build-and-cache-on-bigubuntu: + runs-on: + group: bigrunner + timeout-minutes: 740 + strategy: + fail-fast: false + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Nix with caching + uses: kadena-io/setup-nix-with-cache/by-root@v3.1 + with: + cache_url: s3://nixcache.chainweb.com?region=us-east-1 + signing_private_key: ${{ secrets.NIX_CACHE_PRIVATE_KEY }} + additional_experimental_features: recursive-nix + + - name: Set up AWS credentials + uses: aws-actions/configure-aws-credentials@v2 + with: + aws-access-key-id: ${{ secrets.NIX_CACHE_AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.NIX_CACHE_AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + + - name: Give root user AWS credentials + uses: kadena-io/setup-nix-with-cache/copy-root-aws-credentials@v3.1 + + - name: Build and cache artifacts + run: | + echo Building the project and its devShell + nix build .#check --log-lines 500 --show-trace + + echo Build the recursive output + nix build .#recursive.allDerivations --log-lines 500 --show-trace + + build-and-cache-on-mac: runs-on: ${{ matrix.os }} timeout-minutes: 740 strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest, macos-m1] + os: [macos-latest, macos-m1] steps: - name: Checkout repository uses: actions/checkout@v3 diff --git a/cabal.project b/cabal.project index aa61dfae0..db2dd5763 100644 --- a/cabal.project +++ b/cabal.project @@ -44,6 +44,6 @@ allow-newer: trifecta:* source-repository-package type: git location: https://github.com/kadena-io/kadena-ethereum-bridge.git - tag: ffbf20e9f0430b95448bd66c6b1b530864397fb3 + tag: a32d901e4a79be62af9c27c01152c9a4c3912a62 --sha256: sha256-xdawv/tdjh61MbJKcBqm9Fje36+gVljuZsAxOTX1gP0=