Skip to content

Commit

Permalink
Louis/large runner (#1340)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: June <[email protected]>
Co-authored-by: jmcardon <[email protected]>
  • Loading branch information
4 people authored Feb 15, 2024
1 parent f9f3143 commit fb80a66
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
39 changes: 37 additions & 2 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]

- 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
Expand Down
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -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=

0 comments on commit fb80a66

Please sign in to comment.