-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update,ci,readme: put templated body into release instead of readme (#37
- Loading branch information
1 parent
4ca297f
commit 2f45dbf
Showing
6 changed files
with
65 additions
and
141 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,12 @@ | ||
# Nix unstable installer | ||
# Nix Unstable Installer | ||
|
||
This project is about making Nix unstable release available to the general | ||
This project is about making Nix unstable releases available to the general | ||
public. It allows to test and use preview features like Flakes and provide | ||
early feedback. | ||
|
||
All it does is copy the release tarballs from Hydra and tweak the install | ||
script so that it fetches them from GitHub instead. | ||
|
||
## Latest release | ||
|
||
* Release: `nix-2.10.0pre20220808_73fde9e` | ||
* Hydra eval: <https://hydra.nixos.org/eval/1775204> | ||
|
||
## Usage | ||
|
||
### Systems | ||
|
||
```sh | ||
sh <(curl -L https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220808_73fde9e/install) | ||
``` | ||
|
||
### GitHub Actions | ||
|
||
Here is an example using Flakes: | ||
|
||
```yaml | ||
name: "Test" | ||
on: | ||
pull_request: | ||
push: | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v17 | ||
with: | ||
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220808_73fde9e/install | ||
# Run the general flake checks | ||
- run: nix flake check | ||
# Verify that the main program builds | ||
- run: nix shell -c echo OK | ||
``` | ||
### Docker | ||
```sh | ||
docker run --rm -ti ghcr.io/numtide/nix-unstable-installer/nix:2.10.0pre20220808_73fde9e | ||
``` | ||
|
||
## Current release process | ||
|
||
* Run `./update.rb [eval_id]` (uses latest successful if no eval ID given) | ||
* Commit and tag with the release name | ||
* Push to GitHub | ||
* Create a new GitHub release and attach all files in the ./dist folder | ||
Pick the release that you want to use. Each release has a usage instruction attached to it: <https://github.com/numtide/nix-unstable-installer/releases/latest> |
This file was deleted.
Oops, something went wrong.
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,47 @@ | ||
## Release Information | ||
|
||
* Release name: `<%= release_name %>` | ||
* Hydra eval: <https://hydra.nixos.org/eval/<%= eval_id %>> | ||
|
||
## Usage | ||
|
||
### Linux + macOS Systems | ||
|
||
```sh | ||
sh <(curl -L <%= server_url %>/<%= repository %>/releases/download/<%= release_name %>/install) | ||
``` | ||
|
||
### GitHub Actions | ||
|
||
Example using Flakes: | ||
|
||
```yaml | ||
name: "Example Flake Workflow" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
tests: | ||
name: Run tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: cachix/install-nix-action@<%= install_nix_action_version %> | ||
with: | ||
install_url: <%= server_url %>/<%= repository %>/releases/download/<%= release_name %>/install | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
# Run the general flake checks | ||
- run: nix flake check | ||
|
||
# Verify that the main program builds | ||
- run: nix shell -c echo OK | ||
``` | ||
|
||
### Docker / Podman | ||
|
||
```sh | ||
docker run --rm -ti ghcr.io/<%= repository %>/nix:<%= release_name.delete_prefix("nix-") %> | ||
``` |
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