diff --git a/.github/workflows/cachix.yaml b/.github/workflows/cachix.yaml new file mode 100644 index 0000000..0c42a8a --- /dev/null +++ b/.github/workflows/cachix.yaml @@ -0,0 +1,25 @@ +name: Cachix +on: + push: + branches: + - main + +jobs: + publish: + name: Publish Flake + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Install nix + uses: cachix/install-nix-action@V27 + + - name: Authenticate with Cachix + uses: cachix/cachix-action@v15 + with: + name: varnam-nix + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + + - name: Build nix flake + run: nix build -L .#libgovarnam .#fcitx5-varnam diff --git a/govarnam/default.nix b/govarnam/default.nix index 3890a6b..b14f19e 100644 --- a/govarnam/default.nix +++ b/govarnam/default.nix @@ -23,7 +23,6 @@ buildGoModule rec { nativeBuildInputs = [ pkg-config libgovarnam ]; - ldflags = [ "-w" "-s"