-
Notifications
You must be signed in to change notification settings - Fork 2
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
15 changed files
with
673 additions
and
95 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 @@ | ||
4bef2ccb693617da03555f48eb47b0a1521eff57b107f63ef255e94e0518216ec12e293bd8a1551c6d7283294e6c467ba77bc669e7e14e79006eb74d87fd13f4 |
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 @@ | ||
#!/usr/bin/env bash | ||
dot_git="$(git rev-parse --git-common-dir)" | ||
if [[ ! -d "${dot_git}/hooks" ]]; then mkdir -p "${dot_git}/hooks"; fi | ||
rm -f "${dot_git}/hooks/commit-msg" | ||
ln -sf "$(pwd)/misc/git-hooks/commit-msg" "${dot_git}/hooks/commit-msg" | ||
|
||
dot_git="$(git rev-parse --git-common-dir)" | ||
if [[ ! -d "${dot_git}/hooks" ]]; then mkdir -p "${dot_git}/hooks"; fi | ||
rm -f "${dot_git}/hooks/pre-commit" | ||
ln -sf "$(pwd)/misc/git-hooks/pre-commit" "${dot_git}/hooks/pre-commit" | ||
|
||
# set template | ||
git config commit.template misc/git-hooks/commit-template.txt | ||
|
||
if [ -n "${DIRENV_IN_ENVRC:-}" ]; then | ||
# and not set DIRENV_LOG_FORMAT | ||
if [ -n "${DIRENV_LOG_FORMAT:-}" ]; then | ||
>&2 echo "💡 Set 'DIRENV_LOG_FORMAT=\"\"' in your shell environment variables for a cleaner output of direnv" | ||
fi | ||
fi | ||
|
||
>&2 echo "💡 Run 'just' for a list of available 'just ...' helper recipes" |
Empty file.
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,76 @@ | ||
# THIS FILE IS AUTOGENERATED FROM FLAKEBOX CONFIGURATION | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@v4 | ||
- name: Magic Nix Cache | ||
uses: DeterminateSystems/magic-nix-cache-action@v2 | ||
- name: Build on ${{ matrix.host }} | ||
run: nix build .#ci.rblake2sum | ||
strategy: | ||
matrix: | ||
host: | ||
- macos | ||
- linux | ||
include: | ||
- host: linux | ||
runs-on: ubuntu-latest | ||
timeout: 60 | ||
- host: macos | ||
runs-on: macos-12 | ||
timeout: 60 | ||
timeout-minutes: ${{ matrix.timeout }} | ||
flake: | ||
name: Flake self-check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check Nix flake inputs | ||
uses: DeterminateSystems/flake-checker-action@v5 | ||
with: | ||
fail-mode: true | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@v4 | ||
- name: Magic Nix Cache | ||
uses: DeterminateSystems/magic-nix-cache-action@v2 | ||
- name: Cargo Cache | ||
uses: actions/cache@v3 | ||
with: | ||
key: ${{ runner.os }}-${{ hashFiles('Cargo.lock') }} | ||
path: ~/.cargo | ||
- name: Commit Check | ||
run: '# run the same check that git `pre-commit` hook does | ||
nix develop --ignore-environment .# --command ./misc/git-hooks/pre-commit | ||
' | ||
name: CI | ||
'on': | ||
merge_group: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
push: | ||
branches: | ||
- master | ||
- main | ||
tags: | ||
- v* | ||
workflow_dispatch: {} | ||
|
||
|
||
# THIS FILE IS AUTOGENERATED FROM FLAKEBOX CONFIGURATION |
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,34 @@ | ||
# THIS FILE IS AUTOGENERATED FROM FLAKEBOX CONFIGURATION | ||
|
||
jobs: | ||
flakehub-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: '${{ (inputs.tag != null) && format(''refs/tags/{0}'', inputs.tag) || | ||
'''''' }} | ||
' | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@v4 | ||
- name: Flakehub Push | ||
uses: DeterminateSystems/flakehub-push@main | ||
with: | ||
name: ${{ github.repository }} | ||
tag: ${{ inputs.tag }} | ||
visibility: public | ||
name: Publish to Flakehub | ||
'on': | ||
push: | ||
tags: | ||
- v?[0-9]+.[0-9]+.[0-9]+* | ||
workflow_dispatch: | ||
inputs: | ||
tags: | ||
description: The existing tag to publish to FlakeHub | ||
required: true | ||
type: string | ||
|
||
|
||
# THIS FILE IS AUTOGENERATED FROM FLAKEBOX CONFIGURATION |
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,4 @@ | ||
group_imports = "StdExternalCrate" | ||
wrap_comments = true | ||
format_code_in_doc_comments = true | ||
imports_granularity = "Module" |
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
Oops, something went wrong.