Skip to content

Commit

Permalink
Merge pull request #1 from NilFoundation/directly-include-crypto3
Browse files Browse the repository at this point in the history
Directly include crypto3
  • Loading branch information
AndreyMlashkin authored Aug 23, 2024
2 parents 88123a8 + 8dc97fb commit 902cea2
Show file tree
Hide file tree
Showing 2,339 changed files with 835,561 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/crypto3-testing-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Crypto3 Build and Test on Linux Platforms

on:
workflow_call:

jobs:
build-and-test:
name: "Build and test Linux"
runs-on: [self-hosted, Linux, X64, aws_autoscaling]
steps:
# https://github.com/actions/checkout/issues/1552
- name: Clean up after previous checkout
run: chmod +w -R ${GITHUB_WORKSPACE}; rm -rf ${GITHUB_WORKSPACE}/*;

- name: Checkout Crypto3
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Run checks
run: cd crypto3 && nix flake -L check
env:
NIX_CONFIG: |
cores = 6
max-jobs = 4
26 changes: 26 additions & 0 deletions .github/workflows/crypto3-testing-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Crypto3 Build and Test on macOS Platforms

on:
workflow_call:

jobs:
build-and-test:
name: "Build and test macOS"
runs-on: [macos-14]
steps:
- name: Checkout Crypto3
uses: actions/checkout@v4
with:
fetch-depth: 0

# From https://github.com/DeterminateSystems/magic-nix-cache-action
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main

- name: Run checks
run: cd crypto3 && nix flake -L check
env:
NIX_CONFIG: |
cores = 0
max-jobs = 1
30 changes: 30 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PR Testing

on:
pull_request:
push:
branches:
- master

concurrency:
# In master we want to run for every commit, in other branches — only for the last one
group: ${{
( github.ref == 'refs/heads/master' && format('{0}/{1}/{2}', github.workflow, github.ref, github.sha) )
||
format('{0}/{1}', github.workflow, github.ref) }}
cancel-in-progress: true

jobs:
test-linux:
name: Linux Crypto3 Testing
uses: ./.github/workflows/crypto3-testing-linux.yml
if: |
always() && !cancelled()
secrets: inherit

test-mac:
name: macOS Crypto3 Testing
uses: ./.github/workflows/crypto3-testing-mac.yml
if: |
always() && !cancelled()
secrets: inherit
Loading

0 comments on commit 902cea2

Please sign in to comment.