An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# go-instaaction ![gha build](https://github.com/karantan/go-instaaction/workflows/Go/badge.svg)
Minimalistic example of a CLI golang app building & releasing with GHA

Whenever 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; };
```