diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000000..cd6c5eed1f --- /dev/null +++ b/.github/workflows/checks.yml @@ -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 + diff --git a/flake.nix b/flake.nix index d6d8923a5b..c14567eb93 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; @@ -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";