Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
2,386 additions
and
558 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[advisories] | ||
ignore = [ | ||
# this is the `time` segfault | ||
# `chrono` depends on `time = "0.1"`, but doesn't use the vulnerable API | ||
"RUSTSEC-2020-0071" | ||
] |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# DEVOPS | ||
|
||
/.github/action/nix-common-setup* @input-output-hk/jormungandr-devops | ||
/.github/workflows/nix.yml @input-output-hk/jormungandr-devops | ||
/default.nix @input-output-hk/jormungandr-devops | ||
/flake.lock @input-output-hk/jormungandr-devops | ||
/flake.nix @input-output-hk/jormungandr-devops | ||
/shell.nix @input-output-hk/jormungandr-devops |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Setup Nix Environment | ||
inputs: | ||
CACHIX_AUTH_TOKEN: | ||
required: true | ||
description: 'Cachix Auth Token' | ||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Installing Nix | ||
uses: cachix/install-nix-action@v16 | ||
with: | ||
nix_path: nixpkgs=channel:nixpkgs-unstable | ||
extra_nix_config: | | ||
accept-flake-config = true | ||
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= | ||
substituters = https://hydra.iohk.io https://cache.nixos.org/ | ||
- uses: cachix/cachix-action@v10 | ||
with: | ||
name: iog | ||
authToken: '${{ inputs.CACHIX_AUTH_TOKEN }}' |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: '00:00' | ||
timezone: UTC | ||
open-pull-requests-limit: 10 | ||
commit-message: | ||
prefix: "chore" | ||
include: "scope" |
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
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Nix CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- catalyst-fund* | ||
pull_request: | ||
|
||
jobs: | ||
decision: | ||
name: Decide what we need to build | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
packages: ${{ steps.packages.outputs.packages }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup | ||
uses: ./.github/actions/nix-common-setup | ||
with: | ||
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} | ||
|
||
- name: Packages | ||
id: packages | ||
run: | | ||
packages=$(nix eval .#packages.x86_64-linux --apply builtins.attrNames --json) | ||
echo "PACKAGES -> $packages" | ||
echo "::set-output name=packages::$packages" | ||
build: | ||
name: Build ${{ matrix.package }} package | ||
needs: | ||
- decision | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
package: ${{ fromJSON(needs.decision.outputs.packages) }} | ||
exclude: | ||
- package: default | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup | ||
uses: ./.github/actions/nix-common-setup | ||
with: | ||
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} | ||
|
||
- name: Build package | ||
run: | | ||
path=$(nix eval --raw .#packages.x86_64-linux.${{ matrix.package }}) | ||
hash=${path:11:32} | ||
url="https://iog.cachix.org/$hash.narinfo"; | ||
if curl --output /dev/null --silent --head --fail "$url"; then | ||
echo "Nothing to build!!!" | ||
echo "" | ||
echo "See build log with:" | ||
echo " nix log $path" | ||
echo "" | ||
else | ||
nix build .#packages.x86_64-linux.${{ matrix.package }} --show-trace -L | ||
fi |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: update-flake-lock | ||
on: | ||
workflow_dispatch: # allows manual triggering | ||
schedule: | ||
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 | ||
|
||
jobs: | ||
lockfile: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install Nix | ||
uses: cachix/install-nix-action@v17 | ||
with: | ||
extra_nix_config: | | ||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | ||
- name: Update flake.lock | ||
uses: DeterminateSystems/update-flake-lock@v14 |
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 |
---|---|---|
@@ -1,6 +1,12 @@ | ||
/.vscode | ||
/.vs | ||
/.idea | ||
|
||
|
||
qr-code.svg | ||
|
||
/target | ||
/venv | ||
/.direnv | ||
/.pre-commit-config.yaml | ||
/result* |
Oops, something went wrong.