Skip to content

Commit

Permalink
remove nixos build, unmaintained, does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
mixmasala committed Sep 19, 2024
1 parent 5dbe56c commit f84cd79
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 180 deletions.
40 changes: 1 addition & 39 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,6 @@ jobs:
name: katzen
path: ./katzen

build_other_linuxes:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Build for linux (alpine)
run: make distro=alpine docker-build-linux

- name: Upload binary artifact
uses: actions/upload-artifact@v3
with:
name: katzen.alpine
path: ./katzen

- name: Build for Nix
run: make docker-build-nix

- name: Save output artifact name
run: ls nix_build | head -1 > nixos.output

- name: Upload binary artifact
uses: actions/upload-artifact@v3
with:
name: nixos.output
path: nixos.output

build_windows:
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -109,7 +82,7 @@ jobs:

create_release:
runs-on: ubuntu-22.04
needs: [build_linux, build_other_linuxes, build_windows, build_macos, build_android]
needs: [build_linux, build_windows, build_macos, build_android]
steps:
- name: Download katzen linux
uses: actions/download-artifact@v3
Expand All @@ -136,17 +109,6 @@ jobs:
with:
name: katzen-macos-arm64

- name: Download nixos output name
uses: actions/download-artifact@v3
with:
name: nixos.output

- name: Hash and commit
run: |
sha256sum katzen katzen.apk katzen-macos-arm64 katzen-macos-amd64 katzen.exe > katzen.sha256
echo -n "# the nixos output was: " >> katzen.sha256
cat nixos.output >> katzen.sha256
- name: Create release
id: create_release
uses: actions/create-release@v1
Expand Down
25 changes: 0 additions & 25 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,29 +55,6 @@ docker-debian-base: $(cache_dir)
&& $(docker) rm katzen_debian_base; \
fi

docker-nix-base: $(cache_dir)
if ! $(docker) images|grep katzen/nix_base; then \
$(docker) run --replace --name katzen_nix_base \
-v "$(shell readlink -f .)":/katzen/ --workdir /katzen \
nixos/nix:master nix \
--extra-experimental-features flakes \
--extra-experimental-features nix-command \
develop --command true \
&& $(docker) commit katzen_nix_base katzen/nix_base \
&& $(docker) rm katzen_nix_base; \
fi

docker-build-nix: docker-nix-base
# this is for testing and updating the vendorHash (manually, after running go mod...).
# actual nix users should see README (FIXME put nix command in README)
@mkdir -p nix_build
@$(docker) $(docker_run_cmd) --rm -it katzen/nix_base \
bash -c ' \
nix --extra-experimental-features flakes \
--extra-experimental-features nix-command \
build . -L \
&& cp -rp $$(readlink result) nix_build/'

docker-alpine-base: $(cache_dir)
@if ! $(docker) images|grep katzen/alpine_base; then \
$(docker) run --replace --name katzen_alpine_base docker.io/golang:alpine \
Expand Down Expand Up @@ -109,11 +86,9 @@ docker-android-shell: docker-android-base

docker-clean:
-rm -vf result
-rm -rvf nix_build
-rm -rvf $(cache_dir)
-rm -rvf ./go_package_cache # for users of old versions of this makefile
-$(docker) rm katzen_debian_base
-$(docker) rm katzen_alpine_base
-$(docker) rm katzen_nix_base
-$(docker) rmi katzen/$(distro)_base katzen/android_sdk

1 change: 0 additions & 1 deletion default.nix

This file was deleted.

25 changes: 0 additions & 25 deletions flake.lock

This file was deleted.

29 changes: 0 additions & 29 deletions flake.nix

This file was deleted.

61 changes: 0 additions & 61 deletions katzen.nix

This file was deleted.

0 comments on commit f84cd79

Please sign in to comment.