-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from NobbZ/ci-clean
- Loading branch information
Showing
4 changed files
with
67 additions
and
27 deletions.
There are no files selected for viewing
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,48 @@ | ||
name: "build" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
overlays: | ||
name: Build package ${{ matrix.package }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
package: | ||
- advcp | ||
- elixir-lsp | ||
- erlang-ls | ||
- keyleds | ||
- rofi-unicode | ||
- keepass | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: cachix/install-nix-action@v12 | ||
- uses: cachix/cachix-action@v8 | ||
with: { name: nobbz, signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' } | ||
- run: nix-shell --run 'nix-build -E "(import <nixpkgs> { overlays = import ./overlays.nix; }).${{ matrix.package }}"' | ||
|
||
environment: | ||
name: Build for ${{ matrix.hostname }} | ||
needs: overlays | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
hostname: | ||
- delly-nixos | ||
- nixos | ||
- tux-nixos | ||
steps: | ||
- uses: actions/[email protected] | ||
with: { fetch-depth: 0 } | ||
- uses: cachix/install-nix-action@v12 | ||
with: | ||
# install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-3.0pre20200820_4d77513/install | ||
extra_nix_config: experimental-features = nix-command flakes | ||
- uses: cachix/cachix-action@v8 | ||
with: { name: nobbz, signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' } | ||
- run: nix-shell --run 'make build HOSTNAME=${{ matrix.hostname }}' |
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,18 @@ | ||
--- | ||
name: "preflight" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
name: "Preflight – Linting" | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: { fetch-depth: 0 } | ||
- uses: cachix/install-nix-action@v12 | ||
- run: nix-shell --run 'find . -name '"'"'*.nix'"'"' -a -not -name sources.nix -exec nix-linter '"'"'{}'"'"' +' |
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