-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Nix maintenance - stdenv.lib has been deprecated (NixOS/nixpkgs#108938) - replace linuxkit-nix (unmaintained) with nix-docker - updated niv sources * Add Nix workflow * Adjust Nix build to use oxide target * Use auth token for cachix Co-authored-by: Nathaniel van Diepen <[email protected]>
- Loading branch information
Showing
4 changed files
with
56 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build with Nix | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'applications/**' | ||
- 'shared/**' | ||
- 'assets/**' | ||
- 'interfaces/**' | ||
- 'Makefile' | ||
- '*.nix' | ||
pull_request: | ||
paths: | ||
- 'applications/**' | ||
- 'shared/**' | ||
- 'assets/**' | ||
- 'interfaces/**' | ||
- 'Makefile' | ||
- '*.nix' | ||
jobs: | ||
nix-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v18 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: nix-remarkable | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
- name: Build | ||
run: nix-build --argstr system 'x86_64-linux' | ||
timeout-minutes: 15 | ||
- run: | | ||
mkdir output | ||
cp -a result/. output/ | ||
- name: Save Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: output | ||
path: output |
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