Skip to content

Commit

Permalink
add check CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lostbean committed Jan 26, 2024
1 parent f4e9ad1 commit b0ffa66
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
push:

name: release-please
jobs:
nix_build:
name: Build Nix targets
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v5
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Build Nix package
run: nix build

8 changes: 6 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@
inherit (gomod2nix.legacyPackages.${system}) buildGoApplication;
};

packages.container.amd64 = let
checks.cli = packages.cli;
checks.core = packages.core;
checks.engine = packages.engine;

container.image.amd64 = let
server = packages.default.overrideAttrs (old:
old // {
GOOS = "linux";
Expand All @@ -67,7 +71,7 @@
config.Cmd = [ "${server}/bin/linux_amd64/server" ];
};

packages.container.arm64 = let
container.image.arm64 = let
server = packages.default.overrideAttrs (old:
old // {
GOOS = "linux";
Expand Down

0 comments on commit b0ffa66

Please sign in to comment.