Skip to content

Commit

Permalink
ci: switch to flake building
Browse files Browse the repository at this point in the history
  • Loading branch information
itsnebulalol committed Nov 20, 2024
1 parent 8eb4347 commit 11e915d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ jobs:
substituters = https://nix-community.cachix.org https://cache.nixos.org https://attic.svrd.me/nocturne
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Check Nix flake
run: nix flake check

- name: Build nocturned
run: nix develop --command "GOOS=linux GOARCH=arm64 go build"
run: nix build

- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
buildGoApplication = gomod2nix.legacyPackages.${system}.buildGoApplication;
in
{
packages.default = buildGoApplication {
packages.default = (buildGoApplication {
name = "nocturned";
version = "1.0.0";
go = pkgs.go_1_22;
Expand All @@ -66,7 +66,7 @@
homepage = "https://github.com/usenocturne/nocturned";
license = licenses.mit;
};
};
}).overrideAttrs (old: old // { GOOS = "linux"; GOARCH = "arm64"; });

devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
Expand Down

0 comments on commit 11e915d

Please sign in to comment.