This file contains hidden or 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
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v17 | |
| with: | |
| # Mostly to avoid GitHub rate limiting | |
| extra_nix_config: | | |
| access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
| # Note: this would only work if Cargo is included in the Nix shell | |
| - name: Build release |
This file contains hidden or 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
| nix develop --command npm run build |
This file contains hidden or 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
| { | |
| devShells.default = pkgs.mkShell { | |
| buildInputs = with pkgs; [ | |
| go_1_18 | |
| nodePackages.prettier | |
| cargo | |
| python38 | |
| openssl | |
| ]; | |
| }; |
This file contains hidden or 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
| - name: Prettify repo code | |
| uses: creyD/[email protected] | |
| with: | |
| prettier_options: --write **/*.{js,jsx,ts,tsx} | |
| only_changed: true |
This file contains hidden or 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
| { | |
| description = "Dev env with prettier"; | |
| outputs = { self, nixpkgs, flake-utils }: | |
| flake-utils.lib.eachDefaultSystem (system: | |
| let | |
| pkgs = import nixpkgs { inherit system; }; | |
| in | |
| { | |
| devShells.default = pkgs.mkShell { |
This file contains hidden or 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
| github:DeterminateSystems/riff/a54624ac12aa2c125d8891d124519fba17aa2016 | |
| │├───defaultPackage │ | |
| ││ ├───aarch64-darwin: package 'riff-1.0.2' │ | |
| ││ ├───aarch64-linux: package 'riff-1.0.2' │ | |
| ││ ├───x86_64-darwin: package 'riff-1.0.2' |
This file contains hidden or 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
| # 🚫 BAD | |
| nix run github:kinda-sketch/could-be-a-bitcoin-miner | |
| # ✅ BETTER (if you've already vetted the code for this commit) | |
| nix run github:kinda-sketch/could-be-a-bitcoin-miner/0a8e7a241db7938b10062218309ba30f6d9f0e2d |
This file contains hidden or 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
| # Syntax | |
| nix run github:<owner>/<repo>/<revision>#<executable> | |
| # Examples | |
| ## Specific commit ID | |
| nix run github:DeterminateSystems/riff/a71a8b5ddf680df5db8cc17fa7fddd393ee39ffe | |
| ## Tag |
This file contains hidden or 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
| nix run github:omnicorp/runme | |
| nix run github:omnicorp/runme#runme # Equivalent to the above | |
| nix run github:omnicorp/runme#runme-lint |
This file contains hidden or 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
| { | |
| description = "runme application"; | |
| inputs = { | |
| nixpkgs.url = "nixpkgs"; # Resolves to github:NixOS/nixpkgs | |
| # Helpers for system-specific outputs | |
| flake-utils.url = "github:numtide/flake-utils"; | |
| }; | |
| outputs = { self, nixpkgs, flake-utils }: |