-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
f9f3143
commit fb80a66
Showing
2 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters