-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Nix and put the CI for contributors #166
Conversation
pull_request: | ||
paths: | ||
- '.github/workflows/ci-nix.yml' | ||
- '*.nix' | ||
- 'flake.*' | ||
schedule: | ||
# Every 10:42 JST | ||
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule | ||
- cron: '42 1 * * *' | ||
workflow_dispatch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
基本控えめな契機にしつつ、定時実行だけ入れさせてもらいました。本当は Makefile の変更とかも引っ掛けたいけど、他のCIに比べて重めなのでストレスにならんようにと
- uses: DeterminateSystems/magic-nix-cache-action@v2 | ||
- run: nix flake check | ||
- run: nix develop --command echo 'This step should be done before any other "nix develop" steps because of measuring Nix build time' | ||
- run: nix develop --command make all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これに伴って make の task 一つで良いので増やしてそれを走らせると便利そう
{ | ||
"editor.defaultFormatter": "dprint.dprint", | ||
"editor.formatOnSave": true, | ||
"[nix]": { | ||
"editor.defaultFormatter": "jnoortheen.nix-ide" | ||
}, | ||
"[go]": { | ||
"editor.defaultFormatter": "golang.go" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
置かせてもらえると嬉しいけれど、 vim 党として許せないと言うなら已む無し
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
置いてもいいよ!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感謝~ 😂
それか、 .vscode を gitignore に入れちゃって、後はお前ら勝手にやれというのも一つの手なんだろうなぁ
dprint | ||
actionlint | ||
nil | ||
nixpkgs-fmt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vim と fzf もほしいのでは
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
その辺は home-manager で使ってるのよね~
というより、このリポジトリとして依存してないならここに入れない方が良いかなーという部分なんですが、どっかつかってましたっけ
Makefile しかみてない
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EDITOR=vim
makefile にあったわ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vim をこういうとこ入れるって初耳だけど入れてみた
:yoshi: |
あざます! |
目出度くコミット権限を頂いたので、早速 Nix 環境を置かせてもらおうかなと・・・
cc: kachick/times_kachick#221 今まではこうメモってた