Skip to content
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

Merged
merged 2 commits into from
Jul 16, 2023
Merged

Use Nix and put the CI for contributors #166

merged 2 commits into from
Jul 16, 2023

Conversation

kachick
Copy link
Collaborator

@kachick kachick commented Jul 16, 2023

目出度くコミット権限を頂いたので、早速 Nix 環境を置かせてもらおうかなと・・・

cc: kachick/times_kachick#221 今まではこうメモってた

Comment on lines +3 to +12
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:
Copy link
Collaborator Author

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
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これに伴って make の task 一つで良いので増やしてそれを走らせると便利そう

Comment on lines +1 to +10
{
"editor.defaultFormatter": "dprint.dprint",
"editor.formatOnSave": true,
"[nix]": {
"editor.defaultFormatter": "jnoortheen.nix-ide"
},
"[go]": {
"editor.defaultFormatter": "golang.go"
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

置かせてもらえると嬉しいけれど、 vim 党として許せないと言うなら已む無し

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

置いてもいいよ!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感謝~ 😂

それか、 .vscode を gitignore に入れちゃって、後はお前ら勝手にやれというのも一つの手なんだろうなぁ

@kachick kachick requested a review from pankona July 16, 2023 15:53
dprint
actionlint
nil
nixpkgs-fmt
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vim と fzf もほしいのでは

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/kachick/dotfiles/blob/5f4d3e1796655eb8cf5029ea73fef8c36c3695f8/.config/home-manager/home.nix#L123

その辺は home-manager で使ってるのよね~

というより、このリポジトリとして依存してないならここに入れない方が良いかなーという部分なんですが、どっかつかってましたっけ
Makefile しかみてない

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EDITOR=vim

makefile にあったわ

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vim をこういうとこ入れるって初耳だけど入れてみた

6ea5b8a

@pankona
Copy link
Owner

pankona commented Jul 16, 2023

:yoshi:

@pankona pankona merged commit 95e0ede into main Jul 16, 2023
6 checks passed
@pankona pankona deleted the nix branch July 16, 2023 16:05
@kachick
Copy link
Collaborator Author

kachick commented Jul 16, 2023

あざます!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants