https://github.com/karantan/go-instaaction
Minimalistic example of a CLI golang app building & releasing with GHA
https://github.com/karantan/go-instaaction
Last synced: about 2 months ago
JSON representation
Minimalistic example of a CLI golang app building & releasing with GHA
- Host: GitHub
- URL: https://github.com/karantan/go-instaaction
- Owner: karantan
- License: bsd-3-clause
- Created: 2021-02-09T20:15:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T17:50:35.000Z (over 2 years ago)
- Last Synced: 2025-02-13T15:53:52.359Z (4 months ago)
- Language: Go
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-instaaction 
Minimalistic example of a CLI golang app building & releasing with GHAWhenever you create a new Tag the `GoReleaser` GitHub Action will trigger which will
build this program and upload the executable binarys (for darwin and linux) under Assets.It will also add a release description with the "Changelog".
## Build the package with nix
Run the following command:
```bash
$ nix-build -E "with import {}; callPackage ./default.nix {}"
```The version of the program will be passed during the build process via `buildFlagsArray`
in the default.nix.## Add the package to NixOS
Inject buildGoModule and nix-gitignore when calling default.nix. When we
add this package to NixOS we need to use callPackage (or pass the arguments
ourselves).```
instaaction = pkgs.callPackage (import (fetchGit {
url = "[email protected]:karantan/instaaction";
ref = "master";
rev = "...";
})) { };
```or
```
instaaction = pkgs.callPackage (import (fetchGit {
url = "[email protected]:karantan/instaaction";
ref = "master";
rev = "...";
})) { buildGoModule=pkgs.buildGoModule; nix-gitignore=pkgs.nix-gitignore; };
```